FTMGram v2.2.22

Scheme layer used: 224

  • Added the methods add_poll_option() and delete_poll_option().

  • Added the field can_manage_bots to the class User.

  • Added the class KeyboardButtonRequestManagedBot and the field request_managed_bot to the class KeyboardButton.

  • Added the class ManagedBotCreated and the field managed_bot_created to the class Message.

  • 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, description to the class Poll.

  • Added the parameters correct_option_ids, allows_multiple_answers, allows_revoting, shuffle_options, allow_adding_options, hide_results_until_closes, description to the method send_poll().

  • Added the field option_persistent_ids to the class PollAnswer.

  • Added the fields persistent_id, addition_date, added_by_user and added_by_chat to the class PollOption.

  • Added the classes PollOptionAdded and PollOptionDeleted and the fields poll_option_added, poll_option_deleted to the class Message.

  • Added the field poll_option_id to the class ReplyParameters, allowing to reply to a specific poll option.

  • Added the field reply_to_poll_option_id to the class Message.

  • Updated Text Formatting documentation.

  • View new and changed raw API methods.

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).