- Fixed Dart doc generation errors
- Fixed Dart formatter errors
- Support API 6.5, 6.6, 6.7, 6.8
- Updated method
sendMediaGroup
andeditMessageMedia
to dynamically upload media with multipart post - Added factory
InputMedia.fromFile
which accepts parametermedia
in typeio.File
- Added class
InputMediaWithThumbnail
what implementsInputMedia
and factorieswithThumbnailFile
andfromFileWithThumbnailFile
- Breaking Replaced the fields
can_send_media_messages
in the classes [ChatMemberRestricted] and [ChatPermissions] with separate fieldscan_send_audios
,can_send_documents
,can_send_photos
,can_send_videos
,can_send_video_notes
, andcan_send_voice_notes
for different media types - Breaking Renamed the field
thumb
in the classes [Animation], [Audio], [Document], [Sticker], [Video], [VideoNote], [InputMediaAnimation], [InputMediaAudio], [InputMediaDocument], [InputMediaVideo], [StickerSet] tothumbnail
- Breaking Renamed the parameter
thumb
in the methods [sendAnimation], [sendAudio], [sendDocument], [sendVideo], [sendVideoNote] tothumbnail
- Breaking Renamed the method
setStickerSetThumb
tosetStickerSetThumbnail
and its parameterthumb
tothumbnail
- Breaking Renamed the fields
thumb_url
,thumb_width
, andthumb_height
in the classes [InlineQueryResultArticle], [InlineQueryResultContact], [InlineQueryResultDocument], [InlineQueryResultLocation], and [InlineQueryResultVenue] tothumbnail_url
,thumbnail_width
, andthumbnail_height
respectively - Breaking Renamed the field
thumb_url
in the classes [InlineQueryResultPhoto] and [InlineQueryResultVideo] tothumbnail_url
- Breaking Renamed the fields
thumb_url
andthumb_mime_type
in the classes [InlineQueryResultGif], and [InlineQueryResultMpeg4Gif] tothumbnail_url
andthumbnail_mime_type
respectively.
- Export util classes, so users can catch http client exceptions
- Fixed typo in response object
- Implemented Telegram bot API response object
- Update long_polling.dart to respect
retry_after
in error response - Fixed json_serializable deprecation
- Fixed reply in topic bug
- Fixed typos in static constants
- Rolled back 0.5.1 as abstract classes cannot be used with json_serializable
- Made classes like
chat_member
,input_media
and other abstract.
- Configured JSON serialiser to map properties from snake case to camel case
- Breaking Fully convert all property names and parameter names into camel case, so it aligns with Dart styling guide
- Fixed
TEXT_MENTION
bug when using regex - Support API 6.0, 6.1, 6.2, 6.3, 6.4
- Breaking Removed
secretPath
fromwebhook
fetcher, should usesecret_token
instead see setWebhook
- Webhook to throw error when
setWebhook
failed
- Support API 5.7
- Show Ukrainian some love
- Fixed
onTextMention
type cast bug
- Added short-cut to get
TeledartMessage
fromTeleDartCallbackQuery
- Support API 5.4, 5.5 and 5.6
- Breaking
TeleDart
now extendsTelegram
, constructor signature has changed, allTelegram
functions are accessible fromTeleDart
. - Breaking Renamed
TeleDart.setWebhook
intoTeleDart.configureWebhook
- Breaking Removed
TeleDart.editLiveLocation
, should useTelegram.editMessageLiveLocation
instead - Breaking Removed
TeleDart.stopLiveLocation
, should useTelegram.stopMessageLiveLocation
instead - Breaking Removed
CallbackQuery
answer short-cut fromTeleDart
, should use short-cut method fromTeleDartCallbackQuery
- Breaking Removed
InlineQuery
answer short-cut fromTeleDart
, should use short-cut method fromTeleDartInlineQuery
- Breaking Removed
Message
reply short-cuts fromTeleDart
, should use short-cut methods fromTeleDartMessage
- Breaking Removed
PreCheckoutQuery
answer short-cut fromTeleDart
, should use short-cut method fromTeleDartPreCheckoutQuery
- Breaking Removed
ShippingQuery
answer short-cut fromTeleDart
, should use short-cut method fromTeleDartShippingQuery
- Improve documentations
- Format files to comply with Dart styling guide
- Support API 5.2 and 5.3
- Support sound null safety
- Various bug fixes to built-in long poll and webhook fetcher
- Breaking
Webhook
can only instantiated with built-in static functionswebhook.createHttpWebhok
andwebhook.createHttpsWebhok
- Breaking
Event
constructor requires bot's username - Breaking
teledart.start()
method no longer returnsFuture<User>
- Fixed
jsonEncode
issue caused by_nullFilter
fix
- Added function
getDownloadLink
toFile
object - Fixed
http_client
_nullFilter
to allow sending messages"null"
- Updated Teledart models and functions to comply with API 5.1
- Update function type hints for
onCallbackQuery
,onShippingQuery
andonPreCheckoutQuery
- Fixed Teledart message object typo
- Fixed library export directory
- Updated Teledart models and functions to comply with API 5.0
- Added
replyPoll
andreplyDice
Teledart shortcuts
- Support API 5.0
- Added emoji static constants to Dice object
- Allowed create webhook without key pair
- Introduced
AbstractUpdateFetcher
, and nowWebhook
andLongPoll
extends this class. - Support custom update fetcher implementations through
AbstractUpdateFetcher
- Introduced
stop
function toTeledart
to stop fetching updates. - Introduced
setWebhook
toTeledart
, which is an alias tosetWebhook
function inWebhook
, and it is not required to call this function before starting webhook. - Breaking: Removed
setupLongPolling
,removeLongPolling
andsetupWebhook
functions fromTeledart
. - Breaking: To setup webhook or custom implementations of update fetcher,
- Breaking: The
setupWebhook
method inTeledart
now takes no parameters. - Breaking:
startWebhook
andstopWebhook
inWebhook
has renamed intostart
andstop
. - Breaking:
startPolling
andstopPolling
inLongPoll
has renamed intostart
andstop
.
- Fixed long poll
onError
type mismatch bug - Enabled
Teledart
to remove webhook without setting up a webhook
- Fixed http client exception bug
- Removed redundant error catch
- Temporary accept dynamic
chat_id
- Fixed
restrictChatMember
API URL - Fixed
toJson
methods inchat_permissions
,location
andlogin_url
models - Enabled
explicit_to_json
injson_serializable
so nested objects can be parsed
- Added custom server port to webhook implementation
- Added auto-retry to long poll implementation
- Gradually increase retry timeout on each retry, initial timeout is 1 minute
- Automatically retry on exception except HTTP Client error (400)
- Updated multi-part file upload to include original file name
- Fixed
removeLongPolling
not stopping recursive long poll - Fixed long poll not starting with custom long poll configuration
- Fixed missing fields/typos in
InlineQueryResultGif
,InlineQueryResultMpeg4Gif
andPassportElementErrorUnspecified
- updated
restrictChatMember
- Updated example file structure
- Renamed
TeleDartMessage.replyMesasge
intoTeleDartMessage.reply
- Allow overriding webhook server port
- Added reply shortcuts to message
- Added answer shortcuts to callback, inline, pre-checkout and shipping queries
- Added
onPollAnswer
TeleDart
shorthand
- Support API 4.9
- Added poll answer event
- Fixed
answerPreCheckoutQuery
typo
- Support API 4.8
- Fixed disclaimer doc block warnings
- Renamed
datetime_duration_converter.dart
intotime_helper.dart
- Converted
time_helper
into a class
- Fixed #98
- Support API 4.6
- Support API 4.7
- Utilised native objects for date/time related objects (#91)
- Updated
onMessage
(and related functions) to accept String as well as RegExp (#92)
- Support API 4.5
- Follow new styling guide
- Update analysis_options file
- Support API 4.3
- Support API 4.4
- Fixed #70
- Update dependencies
- Prepare for upcoming change to
HttpRequest
andHttpClientResponse
- Fixed styling with if statements
- Updated readme and example
- Changed
startFetching()
intostart()
, and it returns aUser
object which represents the bot
- Fixed up webhook workflow
- Added example to setup webhook
- Support API 4.2
- Modularised model files
- Updated examples
- Fixed #48
- Fixed #46
- Downgrade http package to ^0.11.3, to be compatible with firebase
- Added pedantic package to dev dependencies
- Fixes #40
- Fixes #41
- Follow new styling guide
- Better dartdoc
- Hot fix #36,
toJSON()
passing null values explicitly
- Hot fix #34 400 Bad Request: field "keyboard" of the
ReplyKeyboardMarkup
should be an Array of Arrays - Fixed
getUserProfilePhotos()
returnsUserProfilePhotos
instead ofList<UserProfilePhotos>
- Update readme
- Update description
- Update readme
- Added Bot API 4.1 support
- Update dependencies
- Hot fix model json annotation file
- Hot fix inline_keyboard variable in
InlineKeyboardMarkup
- Add shortcuts
- Supports API 4.0
- Depends on
json_serializable/json_annotation
handling json objects - Fixes typos in model.dart
- Supports regular expression in
onMessage()
- Fixes
pubspec.ymal
SDK constraint to support Dart 2 release - Edit README.md Dart Version shield to build version
- Bug fixes
- Edit example in README.md
- Bug fixes
- Edit example
- Dart2 ready!
- Add short-cut for inline query
- Rename
ChosenInlineQuery
intoChosenInlineResult
and associated objects - Add missing
InlineQueryResultVoice
to model - Bug fixes
- Edit README.md
- Add
onMessage
short-cuts - Add
sendMessage
short-cuts - Add missing
ShippingQuery
to Update
- More editing on README.md
- Edited README.md
- First release
- Initial version, created by Stagehand