Changelog¶
v1.0.0¶
New Feautures¶
Add loop, process_unerad, and wait parameters constructor to
telegrampy.Client.Add options kwargs to
telegrampy.ext.commands.Bot.Add
telegrampy.Client.set_name()andtelegrampy.Client.set_description().Add
telegrampy.Chat.set_title()andtelegrampy.Chat.set_description().Add
telegrampy.Message.pin(),telegrampy.Message.unpin(), andtelegrampy.Chat.clear_pins().Add
telegrampy.ext.conversations.Add
telegrampy.on_post(),telegrampy.on_post_edit(),telegrampy.on_member_update(),telegrampy.on_poll(), andtelegrampy.on_poll_answer()event listeners.Add
telegrampy.Pollandtelegrampy.PollAnswer.Add
telegrampy.User.language_code,telegrampy.User.is_premium.Add
telegrampy.User.added_to_attachment_menu,telegrampy.User.is_premium,telegrampy.User.can_join_groups,telegrampy.User.can_read_all_group_messages,telegrampy.User.supports_inline_queries,telegrampy.User.can_connect_to_business,telegrampy.User.has_main_web_app.Add
telegrampy.ext.commands.ExpectedClosingQuote,telegrampy.ext.commands.ArgumentParsingError, andtelegrampy.ext.commands.UserInputError.Add
telegrampy.ext.commands.ExtensionError,telegrampy.ext.commands.NoEntryPointError, andtelegrampy.ext.commands.ExtensionFailed.Add
telegrampy.Messageable,telegrampy.PartialChat, andtelegrampy.PartialMessageAdd
telegrampy.Client.get_partial_chat(),telegrampy.PartialChat.get_partial_message(), andtelegrampy.Chat.get_partial_message().
Other Changes¶
More throrough logging throughout update handling.
Add complete typehints to library.
Only message entity commands will be processed. Certain use-cases may break.
telegrampy.Chat.get_member()should returntelegrampy.Memberinstead oftelegrampy.UserRename
telegrampy.Client.user()totelegrampy.Client.get_me()Rename
telegrampy.Message.edit()totelegrampy.Message.edit_content()Split
telegrampy.Message.send()intotelegrampy.Message.send_document()andtelegrampy.Message.send_photo()Remove
telegrampy.Chat.history,telegrampy.Client.messagesandtelegrampy.Chat.fetch_message()because they go against the Telegram API design.Remove
telegrampy.Documentandtelegrampy.Photoas they are no longer needed with the new seperated send functions.Remove
telegrampy.TelegramObjectin favor of more functional abstract base classes.
Bux Fixes¶
Considering that previous versions were incomplete and experimental, there are too many too list here. The vast majority of previously encountered bugs have been resolved in this version.
v0.3.1¶
New¶
Add command and command_completion events
Add a start method to Client
Add start alias for help command
Bug Fixes¶
Ignore commands directed at other bots (/command@OtherBot will not invoke @YourBot)
Other¶
Better logging
get_context is now async
Improvements with error messages
v0.3.0¶
New¶
Add a description attribute to Cog
Add a username attribute to Chat
Add a signature and clean_params to Command
Add converters
Raise CommandInvokeError when the command callback itself fails
Better BadArgument errors
Don’t show hidden commands in the help menu
Bug Fixes¶
Fix listeners not being added when a cog is loaded
Remove listeners properly when a cog is removed
Fix member and chat fetching raising 404 errors
Fix bug in help command
Don’t run the default command error handler if a command_error listener is registered
v0.2.0¶
New¶
Ratelimit and better error code handling
Message deleting and editing
Bug Fixes¶
Fix a few typos