televerse 1.4.0 televerse: ^1.4.0 copied to clipboard
Televerse lets you create your own efficient Telegram bots with ease in Dart. Supports latest Telegram Bot API - 6.5!
1.4.0 #
- 🔥 This is breaking change.
- Added the
RawAPI
class to access the raw Telegram Bot API methods. - Added a
api
getter toTeleverse
class to access theRawAPI
class. - 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
,/settings
commands. - You can now use
Televerse.start
,Televerse.help
, andTeleverse.settings
to listen for these commands. - All these methods accepts a
MessageHandler
as a parameter which is a type alias forFutureOr<void> Function(MessageContext)
. - Added
MessageHandler
,CallbackQueryHandler
, andInlineQueryHandler
type aliases.
1.3.0 #
- Telegram Bot API 6.5 (February 3, 2023)
- This includes addition of classes like
KeyboardButtonRequestUser
,KeyboardButtonRequestChat
,UserShared
andChatShared
. - Added some missing implementations for Bot API 6.4
1.2.6 #
- Added
Televerse.instance
getter to get the last instance ofBot
created. - Added
ChatID.chat
getter to get theChat
object from theChatID
object. - Added optional
RegExp? regex
parameter toTeleverse.command
method.
1.2.5 #
- Added
startParameter
getter toMessageContext
class. 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
InlineKeyboard
class is added. This can be very useful in creatingInlineKeyboardMarkup
. - New
Keyboard
class to help with creatingReplyKeyboardMarkup
easily and quickly. - Updated
ReplyKeyboardMarkup
andKeyboardButton
as per the API Documentation (some of the optional parameters were required in the previous version). - Fixed an issue that was causing
sendMessage
to 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
MessageMixin
to supportMessageContext
. - Added
replyWithPhoto
,replyWithVideo
,replyWithAudio
,replyWithDocument
,replyWithVideoNote
,replyWithVoice
,replyWithVenue
,replyWithContact
,replyWithPoll
,replyWithDice
,replyWithChatAction
,replyWithGame
,replyWithAnimation
,replyWithSticker
,editMessageText
, anddeleteMessage
methods toMessageContext
. - Added
ManagementMixin
to supportMessageContext
. - Added
banAuthor
,banSenderChat
,deleteChatPhoto
,promoteAuthor
,restrictAuthor
,exportChatInviteLink
,revokeChatInviteLink
,pinChatMessage
,unpinChatMessage
,getChat
,getChatAdministrators
,getChatMember
, andleaveChat
onManagementMixin
. - Both
MessageMixin
andManagementMixin
are now available onMessageContext
. - Added
CallbackQueryMixin
to supportCallbackQueryContext
. CallbackQueryContext
now hasanswer
andeditMessage
methods available.- Added
InlineQueryMixin
to supportInlineQueryContext
. InlineQueryContext
now hasanswer
, andanswerWithArticles
methods available.
1.2.1 #
- Fixed an issue with the
on
method that it's not getting called on any filters. - Made official Televerse Wiki available at the GitHub repo.
1.2.0 #
- Added
TeleverseEvent
enum to make it easy to listen for particular events. - 🔥 Added
on
method accessible onTeleverse
class. This method can be used to listen for particular events as listed inTeleverseEvent
enum. - Edited method
Televerse.callbackQuery
to acceptRegExp? regex
as an optional parameter. This can be used to listen for callback queries that match the passed regex. - Updated RAW API to return
Message
instead ofMessageContext
. - Updated
Context
class to have the associatedUpdate
object with it. - Update
MessageContextOrBoolean
class to beMessageOrBoolean
in places a method sending eitherMessage
orbool
, such aseditMessageLiveLocation
etc.
1.1.0 #
- Added a lot new methods to
Televerse
class: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.chatType
andchatTypes
- 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.id
to get the Chat ID easily - Improved examples
1.0.1 #
- Initial release
- We're live at Bot API 6.4
MessageContext
class added withreply
method
0.0.1 #
- On development release. Completely new project.