Pyrogram v2.2.22#
Scheme layer used: 224#
Added the methods
add_poll_option()anddelete_poll_option().Added the field
can_manage_botsto the classUser.Added the class
KeyboardButtonRequestManagedBotand the fieldrequest_managed_botto the classKeyboardButton.Added the class
ManagedBotCreatedand the fieldmanaged_bot_createdto the classMessage.Added updates about the creation of managed bots and the change of their token, represented by the class
ManagedBotUpdateHandler.Added support for quizzes with multiple correct answers.
Added the fields
correct_option_ids,allows_revoting,descriptionto the classPoll.Added the parameters
correct_option_ids,allows_multiple_answers,allows_revoting,shuffle_options,allow_adding_options,hide_results_until_closes,descriptionto the methodsend_poll().Added the field
option_persistent_idsto the classPollAnswer.Added the fields
persistent_id,addition_date,added_by_userandadded_by_chatto the classPollOption.Added the classes
PollOptionAddedandPollOptionDeletedand the fieldspoll_option_added,poll_option_deletedto the classMessage.Added the field
poll_option_idto the classReplyParameters, allowing to reply to a specific poll option.Added the field
reply_to_poll_option_idto the classMessage.Updated Text Formatting documentation.
Scheme layer used: 223#
Added the method
send_message_draft(), allowing bots to stream partial messages to a user while being generated. (contributed by @sudo-py-dev in #231).