Class NullTelegramClient
java.lang.Object
org.telegram.telegrambots.client.AbstractTelegramClient
host.anzo.commons.socials.telegram.NullTelegramClient
- All Implemented Interfaces:
org.telegram.telegrambots.meta.generics.TelegramClient
public class NullTelegramClient
extends org.telegram.telegrambots.client.AbstractTelegramClient
- Since:
- 3/14/2025
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadFileAsStreamAsync(org.telegram.telegrambots.meta.api.objects.File file) downloadFileAsync(org.telegram.telegrambots.meta.api.objects.File file) <T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethod<T>>
CompletableFuture<T> executeAsync(Method method) executeAsync(org.telegram.telegrambots.meta.api.methods.groupadministration.SetChatPhoto setChatPhoto) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendAnimation sendAnimation) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendAudio sendAudio) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendDocument sendDocument) CompletableFuture<List<org.telegram.telegrambots.meta.api.objects.message.Message>> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendMediaGroup sendMediaGroup) CompletableFuture<List<org.telegram.telegrambots.meta.api.objects.message.Message>> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendPaidMedia sendPaidMedia) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendPhoto sendPhoto) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendSticker sendSticker) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendVideo sendVideo) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendVideoNote sendVideoNote) CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendVoice sendVoice) executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.AddStickerToSet addStickerToSet) executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.CreateNewStickerSet createNewStickerSet) executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.ReplaceStickerInSet replaceStickerInSet) executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.SetStickerSetThumbnail setStickerSetThumbnail) CompletableFuture<org.telegram.telegrambots.meta.api.objects.File> executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.UploadStickerFile uploadStickerFile) executeAsync(org.telegram.telegrambots.meta.api.methods.updates.SetWebhook setWebhook) executeAsync(org.telegram.telegrambots.meta.api.methods.updatingmessages.EditMessageMedia editMessageMedia) Methods inherited from class org.telegram.telegrambots.client.AbstractTelegramClient
downloadFile, downloadFileAsStream, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.telegram.telegrambots.meta.generics.TelegramClient
downloadFile, downloadFileAsStream, downloadFileAsStreamAsync, downloadFileAsync
-
Constructor Details
-
NullTelegramClient
public NullTelegramClient()
-
-
Method Details
-
executeAsync
public <T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethod<T>> CompletableFuture<T> executeAsync(Method method) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException - Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendDocument sendDocument) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendPhoto sendPhoto) -
executeAsync
public CompletableFuture<Boolean> executeAsync(org.telegram.telegrambots.meta.api.methods.updates.SetWebhook setWebhook) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendVideo sendVideo) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendVideoNote sendVideoNote) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendSticker sendSticker) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendAudio sendAudio) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendVoice sendVoice) -
executeAsync
public CompletableFuture<List<org.telegram.telegrambots.meta.api.objects.message.Message>> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendMediaGroup sendMediaGroup) -
executeAsync
public CompletableFuture<List<org.telegram.telegrambots.meta.api.objects.message.Message>> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendPaidMedia sendPaidMedia) -
executeAsync
public CompletableFuture<Boolean> executeAsync(org.telegram.telegrambots.meta.api.methods.groupadministration.SetChatPhoto setChatPhoto) -
executeAsync
public CompletableFuture<Boolean> executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.AddStickerToSet addStickerToSet) -
executeAsync
public CompletableFuture<Boolean> executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.ReplaceStickerInSet replaceStickerInSet) -
executeAsync
public CompletableFuture<Boolean> executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.SetStickerSetThumbnail setStickerSetThumbnail) -
executeAsync
public CompletableFuture<Boolean> executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.CreateNewStickerSet createNewStickerSet) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.File> executeAsync(org.telegram.telegrambots.meta.api.methods.stickers.UploadStickerFile uploadStickerFile) -
executeAsync
public CompletableFuture<Serializable> executeAsync(org.telegram.telegrambots.meta.api.methods.updatingmessages.EditMessageMedia editMessageMedia) -
executeAsync
public CompletableFuture<org.telegram.telegrambots.meta.api.objects.message.Message> executeAsync(org.telegram.telegrambots.meta.api.methods.send.SendAnimation sendAnimation) -
downloadFileAsync
public CompletableFuture<File> downloadFileAsync(org.telegram.telegrambots.meta.api.objects.File file) -
downloadFileAsStreamAsync
public CompletableFuture<InputStream> downloadFileAsStreamAsync(org.telegram.telegrambots.meta.api.objects.File file)
-