TeleDart class
The main class for controlling your bot.
It combines the methods from the Telegram and the Event objects that you pass into it, so that you can conviniently call them as methods of a single object.
All of the listeners (onMessage, onPoll, etc.) return a Stream. To actually do something when that listener triggers, you need to Use the Stream.listen method and pass a function into it. For example:
teledart.onMessage().listen((message) => print(message.text));
Where teledart
is an instance of the TeleDart class.
Here the message
variable will be an instance of TeleDartMessage,
since the onMessage method returns a Stream<TeleDartMessage>.
Constructors
- TeleDart(String token, Event _event, {AbstractUpdateFetcher? fetcher})
- Constructor in dependency injection manner
Properties
- fetcher ↔ AbstractUpdateFetcher
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addStickerToSet(
int userId, String name, InputSticker sticker) → Future< bool> -
Use this method to add a new sticker to a set created by the bot
inherited
-
answerCallbackQuery(
String callbackQueryId, {String? text, bool? showAlert, String? url, int? cacheTime}) → Future< bool> -
Use this method to send answers to callback queries sent from inline keyboards
inherited
-
answerInlineQuery(
String inlineQueryId, List< InlineQueryResult> results, {int? cacheTime, bool? isPersonal, String? nextOffset, InlineQueryResultsButton? button}) → Future<bool> -
Use this method to send answers to an inline query
inherited
-
answerPreCheckoutQuery(
String preCheckoutQueryId, bool ok, {String? errorMessage}) → Future< bool> -
Use this method to respond to such pre-checkout queries
inherited
-
answerShippingQuery(
String shippingQueryId, bool ok, {List< ShippingOption> ? shippingOptions, String? errorMessage}) → Future<bool> -
Use this method to reply to shipping queries.
inherited
-
answerWebAppQuery(
String webAppQueryId, InlineQueryResult result) → Future< SentWebAppMessage> -
Use this method to set the result of an interaction with a Web App and send a corresponding
message on behalf of the user to the chat from which the query originated.
inherited
-
approveChatJoinRequest(
dynamic chatId, int userId) → Future< bool> -
Use this method to approve a chat join request
inherited
-
banChatMember(
dynamic chatId, int userId, {int? untilDate, bool? revokeMessages}) → Future< bool> -
Use this method to ban a user in a group, a supergroup or a channel
inherited
-
banChatSenderChat(
dynamic chatId, int senderChatId) → Future< bool> -
Use this method to ban a channel chat in a supergroup or a channel
inherited
-
close(
) → Future< bool> -
Use this method to close the bot instance before moving it from one local server to another
inherited
-
closeForumTopic(
dynamic chatId, String messageThreadId) → Future< bool> -
Use this method to close an open topic in a forum supergroup chat.
inherited
-
closeGeneralForumTopic(
dynamic chatId) → Future< bool> -
Use this method to close an open 'General' topic in a forum supergroup chat.
inherited
-
configureWebhook(
) → Future< void> - Configure a webhook used by this bot to receive updates.
-
copyMessage(
dynamic chatId, int fromChatId, int messageId, {int? messageThreadId, String? parseMode, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< MessageId> -
Use this method to copy messages of any kind
inherited
-
createChatInviteLink(
dynamic chatId, {String? name, int? expireDate, int? memberLimit, bool? createsJoinRequest}) → Future< ChatInviteLink> -
Use this method to create an additional invite link for a chat
inherited
-
createForumTopic(
dynamic chatId, String name, {int? iconColor, String? iconCustomEmojiId}) → Future< ForumTopic> -
Use this method to create a topic in a forum supergroup chat.
inherited
-
createInvoiceLink(
String title, String description, String payload, String providerToken, String currency, List< LabeledPrice> prices, {int? maxTipAmount, List<int> ? suggestedTipAmounts, String? providerData, String? photoUrl, int? photoSize, int? photoWidth, int? photoHeight, bool? needName, bool? needPhoneNumber, bool? needEmail, bool? needShippingAddress, bool? sendPhoneNumberToProvider, bool? sendEmailToProvider, bool? isFlexible}) → Future<String> -
Use this method to create a link for an invoice.
inherited
-
createNewStickerSet(
int userId, String name, String title, List< InputSticker> stickers, String stickerFormat, {String? stickerType, bool? needsRepainting}) → Future<bool> -
Use this method to create sticker set owned by a user
inherited
-
declineChatJoinRequest(
dynamic chatId, int userId) → Future< bool> -
Use this method to decline a chat join request
inherited
-
deleteChatPhoto(
dynamic chatId) → Future< bool> -
Use this method to delete a chat photo
inherited
-
deleteChatStickerSet(
dynamic chatId) → Future< bool> -
Use this method to delete a group sticker set from a supergroup
inherited
-
deleteForumTopic(
dynamic chatId, String messageThreadId) → Future< bool> -
Use this method to delete a forum topic along with all its messages in a forum supergroup chat.
inherited
-
deleteMessage(
dynamic chatId, int messageId) → Future< bool> -
Use this method to delete a message, including service messages
inherited
-
deleteMyCommands(
{BotCommandScope? scope, String? languageCode}) → Future< bool> -
Use this method to delete the list of the bot's commands for the given scope and user language
inherited
-
deleteStickerFromSet(
String sticker) → Future< bool> -
Use this method to delete a sticker from a set created by the bot
inherited
-
deleteStickerSet(
String name) → Future< bool> -
Use this method to delete a sticker set that was created by the bot.
inherited
-
deleteWebhook(
{bool? dropPendingUpdates}) → Future< bool> -
Use this method to remove webhook integration if you decide to switch back to getUpdates
inherited
-
editChatInviteLink(
dynamic chatId, String inviteLink, {String? name, int? expireDate, int? memberLimit, bool? createsJoinRequest}) → Future< ChatInviteLink> -
Use this method to edit a non-primary invite link created by the bot
inherited
-
editForumTopic(
dynamic chatId, String messageThreadId, String name, String iconCustomEmojiId) → Future< bool> -
Use this method to edit name and icon of a topic in a forum supergroup chat.
inherited
-
editGeneralForumTopic(
dynamic chatId, String name) → Future< bool> -
Use this method to edit the name of the 'General' topic in a forum supergroup chat.
inherited
-
editMessageCaption(
{dynamic chatId, int? messageId, String? inlineMessageId, String? parseMode, InlineKeyboardMarkup? replyMarkup}) → Future< Message> -
Use this method to edit captions of messages sent by the bot or via the bot
(for inline bots).
inherited
-
editMessageLiveLocation(
double latitude, double longitude, {dynamic chatId, int? messageId, String? inlineMessageId, double? horizontalAccuracy, int? heading, int? proximityAlertRadius, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to edit live location messages sent by the bot or via the bot
(for inline bots).
inherited
-
editMessageMedia(
{dynamic chatId, int? messageId, String? inlineMessageId, InputMedia? media, String? parseMode, InlineKeyboardMarkup? replyMarkup}) → Future< Message> -
Use this method to edit audio, document, photo, or video messages
inherited
-
editMessageReplyMarkup(
{dynamic chatId, int? messageId, String? inlineMessageId, InlineKeyboardMarkup? replyMarkup}) → Future< Message> -
Use this method to edit only the reply markup of messages sent by the bot or via the bot
(for inline bots).
inherited
-
editMessageText(
String text, {dynamic chatId, int? messageId, String? inlineMessageId, String? parseMode, bool? disableWebPagePreview, InlineKeyboardMarkup? replyMarkup}) → Future< Message> -
Use this method to edit text and Game messages sent by the bot or via the bot
(for inline bots).
inherited
-
exportChatInviteLink(
dynamic chatId) → Future< String> -
Use this method to generate a invite link for a chat
inherited
-
forwardMessage(
dynamic chatId, int fromChatId, int messageId, {int? messageThreadId, bool? disableNotification, bool? protectContent}) → Future< Message> -
Use this method to forward messages of any kind. On success, the sent Message is returned.
inherited
-
getChat(
dynamic chatId) → Future< Chat> -
Use this method to get up to date information about the chat
(current name of the user for one-on-one conversations,
current username of a user, group or channel, etc.).
inherited
-
getChatAdministrators(
dynamic chatId) → Future< List< ChatMember> > -
Use this method to get a list of administrators in a chat
inherited
-
getChatMember(
dynamic chatId, int userId) → Future< ChatMember> -
Use this method to get information about a member of a chat
inherited
-
getChatMemberCount(
dynamic chatId) → Future< int> -
Use this method to get the number of members in a chat
inherited
-
getChatMenuButton(
int? chatId) → Future< MenuButton> -
Use this method to get the current value of the bot's menu button in a private chat, or the default menu button.
inherited
-
getCustomEmojiStickers(
List< String> customEmojiIds) → Future<List< Sticker> > -
Use this method to get information about custom emoji stickers by their identifiers.
inherited
-
getFile(
String fileId) → Future< File> -
Use this method to get basic info about a file and prepare it for downloading
inherited
-
getForumTopicIconStickers(
) → Future< List< Sticker> > -
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user.
inherited
-
getGameHighScores(
int userId, {dynamic chatId, int? messageId, String? inlineMessageId}) → Future< List< GameHighScore> > -
Use this method to get data for high score tables
inherited
-
getMe(
) → Future< User> -
A simple method for testing your bot's auth token.
Requires no parameters.
Returns basic information about the bot in form of a User object.
inherited
-
getMyCommands(
{BotCommandScope? scope, String? languageCode}) → Future< List< BotCommand> > -
Use this method to get the current list of the bot's commands for the given scope and user language
inherited
-
getMyDefaultAdministratorRights(
bool? forChannels) → Future< ChatAdministratorRights> -
Use this method to get the current default administrator rights of the bot.
inherited
-
getMyDescription(
String languageCode) → Future< BotDescription> -
Use this method to get the current bot description for the given user language.
inherited
-
getMyName(
String languageCode) → Future< BotName> -
Use this method to get the current bot name for the given user language.
inherited
-
getMyShortDescription(
String languageCode) → Future< BotShortDescription> -
Use this method to get the current bot short description for the given user language.
inherited
-
getStickerSet(
String name) → Future< StickerSet> -
Use this method to get a sticker set
inherited
-
getUpdates(
{int? offset, int? limit, int? timeout, List< String> ? allowedUpdates}) → Future<List< Update> > -
Use this method to receive incoming updates using long polling (wiki)
inherited
-
getUserProfilePhotos(
int userId, {int? offset, int? limit}) → Future< UserProfilePhotos> -
Use this method to get a list of profile pictures for a user
inherited
-
getWebhookInfo(
) → Future< WebhookInfo> -
Use this method to get current webhook status.
Requires no parameters.
inherited
-
hideGeneralForumTopic(
dynamic chatId) → Future< bool> -
Use this method to hide the 'General' topic in a forum supergroup chat.
inherited
-
leaveChat(
dynamic chatId) → Future< bool> -
Use this method for your bot to leave a group, supergroup or channel
inherited
-
logOut(
) → Future< bool> -
Use this method to log out from the cloud Bot API server before launching the bot locally
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBold(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
bold
-
onCallbackQuery(
) → Stream< TeleDartCallbackQuery> - Listen to callback query events
-
onCashtag(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
cashtag
-
onChannelPost(
) → Stream< TeleDartMessage> - Listen to channel post events
-
onChatJoinRequest(
) → Stream< ChatJoinRequest> - Listen to chat join request events
-
onChatMember(
) → Stream< ChatMemberUpdated> - Listen to chat member events
-
onChosenInlineResult(
) → Stream< ChosenInlineResult> - Listen to chosen inline query events
-
onCode(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
code
-
onCommand(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
bot_command
-
onEditedChannelPost(
) → Stream< TeleDartMessage> - Listen to edited channel post events
-
onEditedMessage(
) → Stream< TeleDartMessage> - Listen to edited message events
-
onEmail(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
email
-
onHashtag(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
hashtag
-
onInlineQuery(
) → Stream< TeleDartInlineQuery> - Listen to inline query events
-
onItalic(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
italic
-
onMention(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
mention
(@username) -
onMessage(
{String? entityType, dynamic keyword}) → Stream< TeleDartMessage> -
Listen to message events with
entityType
andkeyword
in text and caption -
onMyChatMember(
) → Stream< ChatMemberUpdated> - Listen to my chat member events
-
onPhoneNumber(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
phone_number
-
onPoll(
) → Stream< Poll> - Listen to poll events
-
onPollAnswer(
) → Stream< PollAnswer> - Listen to poll answer events
-
onPre(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
pre
-
onPreCheckoutQuery(
) → Stream< TeleDartPreCheckoutQuery> - Listen to pre checkout query events
-
onShippingQuery(
) → Stream< TeleDartShippingQuery> - Listen to shipping query events
-
onSpoiler(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
spoiler
-
onTextLink(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
text_link
-
onTextMention(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
text_mention
-
onUrl(
[dynamic keyword]) → Stream< TeleDartMessage> -
Short-cut for onMessage handling entityType
url
-
pinChatMessage(
dynamic chatId, int messageId, {bool? disableNotification}) → Future< bool> -
Use this method to pin a message in a supergroup or a channel
inherited
-
promoteChatMember(
dynamic chatId, int userId, {bool? isAnonymous, bool? canManageChat, bool? canPostMessages, bool? canEditMessages, bool? canDeleteMessages, bool? canManageVideoChats, bool? canRestrictMembers, bool? canPromoteMembers, bool? canChangeInfo, bool? canInviteUsers, bool? canPinMessages, bool? canManageTopics}) → Future< bool> -
Use this method to promote or demote a user in a supergroup or a channel
inherited
-
removeWebhook(
) → Future< void> - Remove and stops webhook
-
reopenForumTopic(
dynamic chatId, String messageThreadId) → Future< bool> -
Use this method to reopen a closed topic in a forum supergroup chat.
inherited
-
reopenGeneralForumTopic(
dynamic chatId) → Future< bool> -
Use this method to reopen a closed 'General' topic in a forum supergroup chat.
inherited
-
restrictChatMember(
dynamic chatId, int userId, ChatPermissions permissions, {bool? useIndependentChatPermissions, int? untilDate}) → Future< bool> -
Use this method to restrict a user in a supergroup
inherited
-
revokeChatInviteLink(
dynamic chatId, String inviteLink) → Future< ChatInviteLink> -
Use this method to revoke an invite link created by the bot
inherited
-
sendAnimation(
dynamic chatId, dynamic animation, {int? messageThreadId, int? duration, int? width, int? height, dynamic thumbnail, String? parseMode, bool? hasSpoiler, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound)
inherited
-
sendAudio(
dynamic chatId, dynamic audio, {int? messageThreadId, String? parseMode, int? duration, String? performer, String? title, dynamic thumbnail, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send audio files
inherited
-
sendChatAction(
dynamic chatId, String action, {int? messageThreadId}) → Future< bool> -
Use this method when you need to tell the user that something is happening on the bot's side
inherited
-
sendContact(
dynamic chatId, String phoneNumber, String firstName, {int? messageThreadId, String? lastName, String? vcard, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send phone contacts
inherited
-
sendDice(
dynamic chatId, {int? messageThreadId, String emoji = Dice.emojiDice, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send an animated emoji that will display a random value
inherited
-
sendDocument(
dynamic chatId, dynamic document, {int? messageThreadId, dynamic thumbnail, String? parseMode, bool? disableContentTypeDetection, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send general files
inherited
-
sendGame(
dynamic chatId, String gameShortName, {int? messageThreadId, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, InlineKeyboardMarkup? replyMarkup}) → Future< Message> -
Use this method to send a game
inherited
-
sendInvoice(
dynamic chatId, String title, String description, String payload, String providerToken, String currency, List< LabeledPrice> prices, {int? messageThreadId, int? maxTipAmount, List<int> ? suggestedTipAmounts, String? startParameter, String? providerData, String? photoUrl, int? photoSize, int? photoWidth, int? photoHeight, bool? needName, bool? needPhoneNumber, bool? needEmail, bool? needShippingAddress, bool? sendPhoneNumberToProvider, bool? sendEmailToProvider, bool? isFlexible, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, InlineKeyboardMarkup? replyMarkup}) → Future<Message> -
Use this method to send invoices
inherited
-
sendLocation(
dynamic chatId, double latitude, double longitude, {int? messageThreadId, double? horizontalAccuracy, int? livePeriod, int? heading, int? proximityAlertRadius, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send point on the map
inherited
-
sendMediaGroup(
dynamic chatId, List< InputMedia> media, {int? messageThreadId, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply}) → Future<List< Message> > -
Use this method to send a group of photos or videos as an album
inherited
-
sendMessage(
dynamic chatId, String text, {int? messageThreadId, String? parseMode, List< MessageEntity> ? entities, bool? disableWebPagePreview, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future<Message> -
Use this method to send text messages. On success, the sent Message is returned.
inherited
-
sendPhoto(
dynamic chatId, dynamic photo, {int? messageThreadId, String? parseMode, bool? hasSpoiler, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send photos
inherited
-
sendPoll(
dynamic chatId, String question, List< String> options, {int? messageThreadId, bool? isAnonymous, String? type, bool? allowsMultipleAnswers, int? correctOptionId, String? explanation, String? explanationParseMode, List<MessageEntity> ? explanationEntities, int? openPeriod, int? closeDate, bool? isClosed, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future<Message> -
Use this method to send a native poll
inherited
-
sendSticker(
dynamic chatId, dynamic sticker, {int? messageThreadId, String? emoji, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send .webp stickers
inherited
-
sendVenue(
dynamic chatId, double latitude, double longitude, String title, String address, {int? messageThreadId, String? foursquareId, String? foursquareType, String? googlePlaceId, String? googlePlaceType, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send information about a venue
inherited
-
sendVideo(
dynamic chatId, dynamic video, {int? messageThreadId, int? duration, int? width, int? height, dynamic thumbnail, String? parseMode, bool? hasSpoiler, bool? supportsStreaming, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send video files
inherited
-
sendVideoNote(
dynamic chatId, dynamic videoNote, {int? messageThreadId, int? duration, int? length, dynamic thumbnail, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send video messages
inherited
-
sendVoice(
dynamic chatId, dynamic voice, {int? messageThreadId, String? parseMode, int? duration, bool? disableNotification, bool? protectContent, int? replyToMessageId, bool? allowSendingWithoutReply, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to send audio files
inherited
-
setChatAdministratorCustomTitle(
dynamic chatId, int userId, String customTitle) → Future< bool> -
Use this method to set a custom title for an administrator in a supergroup promoted by the bot
inherited
-
setChatDescription(
dynamic chatId, {String? description}) → Future< bool> -
Use this method to change the description of a supergroup or a channel
inherited
-
setChatMenuButton(
int? chatId, ) → Future< bool> -
Use this method to change the bot's menu button in a private chat, or the default menu button.
inherited
-
setChatPermissions(
dynamic chatId, ChatPermissions permissions, {bool? useIndependentChatPermissions}) → Future< bool> -
Use this method to set default chat permissions for all members
inherited
-
setChatPhoto(
dynamic chatId, File photo) → Future< bool> -
Use this method to set a profile photo for the chat
inherited
-
setChatStickerSet(
dynamic chatId, String stickerSetName) → Future< bool> -
Use this method to set a group sticker set for a supergroup
inherited
-
setChatTitle(
dynamic chatId, String title) → Future< bool> -
Use this method to change the title of a chat
inherited
-
setCustomEmojiStickerSetThumbnail(
String name, {String? customEmojiId}) → Future< bool> -
Use this method to set the thumbnail of a custom emoji sticker set.
inherited
-
setGameScore(
int userId, int score, {bool? force, bool? disableEditMessage, dynamic chatId, int? messageId, String? inlineMessageId}) → Future< Message> -
Use this method to set the score of the specified user in a game
inherited
-
setMyCommands(
List< BotCommand> commands, {BotCommandScope? scope, String? languageCode}) → Future<bool> -
Use this method to change the list of the bot's commands
inherited
-
setMyDefaultAdministratorRights(
ChatAdministratorRights? rights, bool? forChannels) → Future< bool> -
Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels.
These rights will be suggested to users, but they are are free to modify the list before adding the bot.
inherited
-
setMyDescription(
String description, String languageCode) → Future< bool> -
Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty.
inherited
-
setMyName(
String name, String languageCode) → Future< bool> -
Use this method to change the bot's name.
inherited
-
setMyShortDescription(
String shortDescription, String languageCode) → Future< bool> -
Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot.
inherited
-
setPassportDataErrors(
int userId, List< PassportElementError> errors) → Future<bool> -
Informs a user that some of the Telegram Passport elements they provided contains errors.
inherited
-
setStickerEmojiList(
String sticker, List< String> emojiList) → Future<bool> -
Use this method to change the list of emoji assigned to a regular or custom emoji sticker.
The sticker must belong to a sticker set created by the bot.
inherited
-
setStickerKeywords(
String sticker, List< String> ? keywords) → Future<bool> -
Use this method to change search keywords assigned to a regular or custom emoji sticker.
The sticker must belong to a sticker set created by the bot.
inherited
-
setStickerMaskPosition(
String sticker, MaskPosition? maskPosition) → Future< bool> -
Use this method to change the MaskPosition of a mask sticker.
The sticker must belong to a sticker set that was created by the bot.
inherited
-
setStickerPositionInSet(
String sticker, int position) → Future< bool> -
Use this method to move a sticker in a set created by the bot to a specific position
inherited
-
setStickerSetThumbnail(
String name, int userId, {dynamic thumbnail}) → Future< bool> -
Use this method to set the thumbnail of a sticker set
inherited
-
setStickerSetTitle(
String name, String title) → Future< bool> -
Use this method to set the title of a created sticker set.
inherited
-
setWebhook(
String url, {String? ipAddress, File? certificate, int? maxConnections, List< String> ? allowedUpdates, bool? dropPendingUpdates, String? secretToken}) → Future<bool> -
Use this method to specify a url and receive incoming updates via an outgoing webhook
inherited
-
start(
) → void - Start listening to messages
-
stop(
) → void - Stop fetching updates
-
stopMessageLiveLocation(
{dynamic chatId, int? messageId, String? inlineMessageId, ReplyMarkup? replyMarkup}) → Future< Message> -
Use this method to stop updating a live location message sent by the bot or via the bot
(for inline bots) before livePeriod expires.
inherited
-
stopPoll(
dynamic chatId, int messageId, InlineKeyboardMarkup replyMarkup) → Future< Poll> -
Use this method to stop a poll which was sent by the bot
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unbanChatMember(
dynamic chatId, int userId, {bool? onlyIfBanned}) → Future< bool> -
Use this method to unban a previously kicked user in a supergroup or channel
inherited
-
unbanChatSenderChat(
dynamic chatId, int senderChatId) → Future< bool> -
Use this method to unban a previously banned channel chat in a supergroup or channel
inherited
-
unhideGeneralForumTopic(
dynamic chatId) → Future< bool> -
Use this method to unhide the 'General' topic in a forum supergroup chat.
inherited
-
unpinAllChatMessages(
dynamic chatId) → Future< bool> -
Use this method to clear the list of pinned messages in a chat
inherited
-
unpinAllForumTopicMessages(
dynamic chatId, String messageThreadId) → Future< bool> -
Use this method to clear the list of pinned messages in a forum topic.
inherited
-
unpinAllGeneralForumTopicMessages(
dynamic chatId) → Future< bool> -
Use this method to clear the list of pinned messages in a General forum topic.
The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup.
inherited
-
unpinChatMessage(
dynamic chatId, {int? messageId}) → Future< bool> -
Use this method to remove a message from the list of pinned messages in a chat
inherited
-
uploadStickerFile(
int userId, File sticker, String stickerFormat) → Future< File> -
Use this method to upload a .png file with a sticker for later use in
createNewStickerSet and addStickerToSet methods (can be used multiple times)
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited