televerse 1.8.2
televerse: ^1.8.2 copied to clipboard
Televerse lets you create your own efficient Telegram bots with ease in Dart. Supports latest Telegram Bot API - 6.7!
1.8.2 #
- Added
PollContext,PollAnswerContextclasses to represent the context of apollandpoll_answerupdates. - Added
Televerse.pollmethod to listen topollupdates. - Added
Televerse.pollAnswermethod to listen topoll_answerupdates. - Now most of the Televerse methods return a
StreamSubscriptioninstead ofvoid. - This is to make it easier to cancel the subscription and increase the performance.
- Added
ChosenInlineResultContextclass to represent the context of achosen_inline_resultupdate andTeleverse.chosenInlineResultmethod to listen tochosen_inline_resultupdates. - Added
ChatJoinRequestContextclass to represent the context of achat_join_requestupdate andTeleverse.chatJoinRequestmethod to listen tochat_join_requestupdates. - Added
ShippingQueryContextclass to represent the context of ashipping_queryupdate andTeleverse.shippingQuerymethod to listen toshipping_queryupdates. - Added
PreCheckoutQueryContextclass to represent the context of apre_checkout_queryupdate andTeleverse.preCheckoutQuerymethod to listen topre_checkout_queryupdates.
1.8.1 #
- Added
ChatMemberUpdatedContextclass to represent the context of achat_memberandmy_chat_memberupdates. - Added
Televerse.chatMemberandTeleverse.myChatMembermethods to listen tochat_memberandmy_chat_memberupdates. - Hot fix: Fixed an issue with the
Eventclass that caused unexpected exceptions.
1.8.0 #
- ποΈ Televerse now supports listening to Local Bot API Server.
- Added
Televerse.localmethod to create a bot instance that listens to a local Bot API Server. - Added
RawAPI.localmethod that can be used to createRawAPIinstance that targets a local Bot API Server. - Added
LongPolling.allUpdatesmethod to listen to all updates. This is to simplify listening to all updates including thechat_memberupdates. - Updated
/example/test_bot.dartfile to reflect the changes.
1.7.2 #
- [BREAKING] β οΈ - The
chatgetter on theChatIDclass is now replaced to be a method of theIDclass, and renamed toget(). - This is to avoid confusion with the
chatparameter in theChatIDclass. - Also, now the
get()method is available on all theIDclasses -ChatID,SuperGroupIDandChannelID. - Fixed an issue that caused the Long Polling to fail.
- The issue was with the
Message.fromJsonmethod which was not able to parse theMessageobject when anewChatPhotowas present. - Thanks to @deargosep for reporting and fixing this issue.
1.7.1 #
- [BREAKING] β οΈ - The parameters
nameandlanguageCodeare made positional in thesetMyNamemethod and thegetMyNamemethod. - Improved documentation.
1.7.0 #
- π€ Bot API 6.7 is added!
- Read more here.
- [BREAKING] π¨π»βπ§ - The
answerInlineQuerywill no longer acceptswitchPmParameterorswitchPmTextparameters. - The example files are updated with dartdoc comments.
1.6.0 #
- βοΈ BREAKING - The
allowedUpdatesparameter in theLongPollingobject now accepts the list ofUpdateTypeinstead ofString - Added methods
requestChatandrequestUserinKeyboard - Added equality operator (
==) onID. - Added a test to check equality of two Chat IDs.
- Added missing implementation for
WebhookInfo.toJsonmethod - Added dartdoc comments for almost every bit of the library.
1.5.6 #
- Fixed an issue with
RawAPI.copyMessagemethod. - Updated the
Televerse.commandmethod to accept aStringorRegExpas thecommandparameter.
1.5.5 #
- Changed the
dataparameter to accept bothStringandRegExpusingPatterntype onTeleverse.callbackQuerymethod. - This can simplify the code when you want to listen to a callback query with a specific data.
- The test_bot.dart file in the example folder has been updated to reflect this change.
1.5.4 #
- Added new test cases in the
/testfolder. - There were some
thumbparameters even though they were changed tothumbnailin the API documentation. Fixed that. - Fixed an issue with sending media group using local files. More info on #56
- Completely removed the class
MessageOrBooleanas it was not needed. All methods that return either aMessageor aboolnow split into two methods. One forMessageand one forbool. - Updated the
ReplyKeyboardRemoveclass to reflect auto set theremove_keyboardparameter totruewhen theReplyKeyboardRemoveclass is created. - Similarly, updated the
ForceReplyclass to reflect auto set theforce_replyparameter totruewhen theForceReplyclass is created. - Fixed an issue with
addStickerToSetmethod which caused it to fail. More info on #57. - Tested all methods related to Stickers.
- Fixed an issue with
createNewStickerSetmethod which caused it to fail. More info on #58.
1.5.3 #
- Fixed an issue with
RawAPI.sendAudiomethod. - Added new test files in example folder.
1.5.2 #
- More fixes around the
RawAPIclass. - Added missing implementations for
RawAPI.getCustomEmojiStickersmethod.
1.5.1 #
- Fixed an issue with the
RawAPI.sendChatActionmethod. - More fixes around the RawAPI class.
1.5.0 #
- π€ Bot API 6.6 (March 9, 2021) π
- A bunch of changes as per the Bot API 6.6
1.4.7 #
- Added
Televerse.entitymethod to listen to entities in messages. - Improved code quality.
- Removed all the different StreamController classes and replaced them with a single
StreamController<Update>instance. - All the event streams are now based on the
onUpdatestream. - Added
Message.getEntityTextmethod to get the text of the entity. - Updated the televerse_example file to reflect the changes.
1.4.6 #
- Added
Message.isCommandgetter to check if the message is a command. - Added
Televerse.onErrormethod to listen to unexpected exceptions.
1.4.5 #
- A bunch of refactors on the
onmethod.
1.4.4 #
- Added
TeleverseEvent.commandto listen to all commands.
1.4.3 #
- Added helper methods on
Fileclass to get the file download URL, download URI, file bytes, and finally to download the file. - Added
File.downloadmethod to download the file. - Added
File.getDownloadUrlmethod to get the file download URL asString. - Added
File.getDownloadURImethod to get theUriobject of the file download URL. - Added
File.getBytesmethod to get the file bytes this returns aFuture<Uint8List>. - Added
File.downloadmethod to download the file. This returns aFuture<io.File>object. - The working example is available at examples/file_download.dart
1.4.2 #
- Fixed an issue with the webhook configuration.
- Made it easier to set a custom fetcher. You don't have to pass the
RawAPIinstance to theFetcherconstructor anymore.
1.4.1 #
- Minor formatting changes.
1.4.0 #
- π₯ This is breaking change.
- Added the
RawAPIclass to access the raw Telegram Bot API methods. - Added a
apigetter toTeleverseclass to access theRawAPIclass. - Now it's even easier to access and differentiate between the Telegram Bot API methods and Televerse methods.
- Added dartdoc comments to all the classes.
1.3.1 #
- Added shorthand methods to setup listners for
/start,/help,/settingscommands. - You can now use
Televerse.start,Televerse.help, andTeleverse.settingsto listen for these commands. - All these methods accepts a
MessageHandleras a parameter which is a type alias forFutureOr<void> Function(MessageContext). - Added
MessageHandler,CallbackQueryHandler, andInlineQueryHandlertype aliases.
1.3.0 #
- Telegram Bot API 6.5 (February 3, 2023)
- This includes addition of classes like
KeyboardButtonRequestUser,KeyboardButtonRequestChat,UserSharedandChatShared. - Added some missing implementations for Bot API 6.4
1.2.6 #
- Added
Televerse.instancegetter to get the last instance ofBotcreated. - Added
ChatID.chatgetter to get theChatobject from theChatIDobject. - Added optional
RegExp? regexparameter toTeleverse.commandmethod.
1.2.5 #
- Added
startParametergetter toMessageContextclass. This will be automatically set when the bot is started by a user clicking on a deep link such ast.me/MyBot?start=12345. - Added more tests.
- Whole lot of refactoring.
1.2.4 #
- New
InlineKeyboardclass is added. This can be very useful in creatingInlineKeyboardMarkup. - New
Keyboardclass to help with creatingReplyKeyboardMarkupeasily and quickly. - Updated
ReplyKeyboardMarkupandKeyboardButtonas per the API Documentation (some of the optional parameters were required in the previous version). - Fixed an issue that was causing
sendMessageto not work when used with any reply markup.
1.2.3 #
- Added documentation for all most all classes and Televerse things.
1.2.2 #
- Added
MessageMixinto supportMessageContext. - Added
replyWithPhoto,replyWithVideo,replyWithAudio,replyWithDocument,replyWithVideoNote,replyWithVoice,replyWithVenue,replyWithContact,replyWithPoll,replyWithDice,replyWithChatAction,replyWithGame,replyWithAnimation,replyWithSticker,editMessageText, anddeleteMessagemethods toMessageContext. - Added
ManagementMixinto supportMessageContext. - Added
banAuthor,banSenderChat,deleteChatPhoto,promoteAuthor,restrictAuthor,exportChatInviteLink,revokeChatInviteLink,pinChatMessage,unpinChatMessage,getChat,getChatAdministrators,getChatMember, andleaveChatonManagementMixin. - Both
MessageMixinandManagementMixinare now available onMessageContext. - Added
CallbackQueryMixinto supportCallbackQueryContext. CallbackQueryContextnow hasanswerandeditMessagemethods available.- Added
InlineQueryMixinto supportInlineQueryContext. InlineQueryContextnow hasanswer, andanswerWithArticlesmethods available.
1.2.1 #
- Fixed an issue with the
onmethod that it's not getting called on any filters. - Made official Televerse Wiki available at the GitHub repo.
1.2.0 #
- Added
TeleverseEventenum to make it easy to listen for particular events. - π₯ Added
onmethod accessible onTeleverseclass. This method can be used to listen for particular events as listed inTeleverseEventenum. - Edited method
Televerse.callbackQueryto acceptRegExp? regexas an optional parameter. This can be used to listen for callback queries that match the passed regex. - Updated RAW API to return
Messageinstead ofMessageContext. - Updated
Contextclass to have the associatedUpdateobject with it. - Update
MessageContextOrBooleanclass to beMessageOrBooleanin places a method sending eitherMessageorbool, such aseditMessageLiveLocationetc.
1.1.0 #
- Added a lot new methods to
Televerseclass:command- Can be used to listen for Messages that contain the passed commandtext- This is a very basic method, which can be used to listen to messages that contain particular text content in itcallbackQuery- Can be used to listen for callbackQuery updates.chatTypeandchatTypes- Can be used to register callbacks for messages received on particular chat types.filter- Filter is an advanced method that can be used to listen for messages that pass a given predicate condition.hears- One of the best picks. Users can pass a RegEx pattern and listen for messages that contain a match.
- Added
MessageContext.idto get the Chat ID easily - Improved examples
1.0.1 #
- Initial release
- We're live at Bot API 6.4
MessageContextclass added withreplymethod
0.0.1 #
- On development release. Completely new project.