TeleDart class

Constructors

TeleDart(Telegram telegram, Event _event)
Constructor in dependency injection manner

Properties

maxTimeout → int
final
telegram Telegram
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

answerInlineQuery(InlineQuery inline_query, List<InlineQueryResult> results, { int cache_time, bool is_personal, String next_offset, String switch_pm_text, String switch_pm_parameter }) → Future<bool>
Short-cut to answer inline query
editLiveLocation(double latitude, double longitude, { int chat_id, int message_id, String inline_message_id, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to edit a live location message
onBold([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType bold
onCallbackQuery() → Stream<CallbackQuery>
Listens to callback query events
onCashtag([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType cashtag
onChannelPost() → Stream<Message>
Listens to channel post events
onChosenInlineResult() → Stream<ChosenInlineResult>
Listens to chosen inline query events
onCode([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType code
onCommand([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType bot_command
onEditedChannelPost() → Stream<Message>
Listens to edited channel post events
onEditedMessage() → Stream<Message>
Listens to edited message events
onEmail([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType email
onHashtag([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType hashtag
onInlineQuery() → Stream<InlineQuery>
Listens to inline query events
onItalic([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType italic
onMention([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType mention (@username)
onMessage({String entityType, String keyword }) → Stream<Message>
Listens to message events with entityType and keyword in text and caption [...]
onPhoneNumber([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType phone_number
onPre([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType pre
onPreCheckoutQuery() → Stream<PreCheckoutQuery>
Listens to pre checkout query events
onShippingQuery() → Stream<ShippingQuery>
Listens to shipping query events
Short-cut for onMessage handling entityType text_link
onTextMention([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType text_mention
onUrl([String keyword ]) → Stream<Message>
Short-cut for onMessage handling entityType url
removeLongPolling() → void
Removes and stops long polling
removeWebhook() → void
Removes and stops webhook
replyAnimation(Message orgMsg, dynamic animation, { bool withQuote: false, int duration, int width, int height, dynamic thumb, String caption, String parse_mode, bool disable_notification, int reply_to_message_id, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a animation message
replyAudio(Message orgMsg, dynamic audio, { bool withQuote: false, String caption, String parse_mode, int duration, String performer, String title, dynamic thumb, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a audio message
replyContact(Message orgMsg, String phone_number, String first_name, { bool withQuote: false, String last_name, String vcard, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a contact message
replyDocument(Message orgMsg, dynamic document, { bool withQuote: false, dynamic thumb, String caption, String parse_mode, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a document message
replyLocation(Message orgMsg, double latitude, double longitude, { bool withQuote: false, int live_period, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a location message
replyMediaGroup(Message orgMsg, List<InputMedia> media, { bool withQuote: false, bool disable_notification }) → Future<List<Message>>
Short-cut to reply with a media group message
replyMessage(Message orgMsg, String text, { bool withQuote: false, String parse_mode, bool disable_web_page_preview, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a text message
replyPhoto(Message orgMsg, dynamic photo, { bool withQuote: false, String caption, String parse_mode, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a photo message
replySticker(Message orgMsg, dynamic sticker, { bool withQuote: false, bool disable_notification, int reply_to_message_id, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a contact message
replyVenue(Message orgMsg, double latitude, double longitude, String title, String address, { bool withQuote: false, String foursquare_id, String foursquare_type, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a venue message
replyVideo(Message orgMsg, dynamic video, { bool withQuote: false, int duration, int width, int height, dynamic thumb, String caption, String parse_mode, bool supports_streaming, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a video message
replyVideoNote(Message orgMsg, dynamic video_note, { bool withQuote: false, int duration, int length, dynamic thumb, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a video note message
replyVoice(Message orgMsg, dynamic voice, { bool withQuote: false, String caption, String parse_mode, bool disable_notification, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to reply with a voice message
setupLongPolling({int offset: 0, int limit: 100, int timeout: 30, List<String> allowed_updates }) → void
Configures long polling method [...]
setupWebhook(String url, String secretPath, { int port: 443, File privateKey, File certificate, int max_connections: 40, List<String> allowed_updates }) → Future<void>
Configures webhook method [...]
startFetching({bool webhook: false }) → Future<void>
Starts listening to messages [...]
stopLiveLocation({int chat_id, int message_id, String inline_message_id, ReplyMarkup reply_markup }) → Future<Message>
Short-cut to stop a live location message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited