Skip to content

API 4.7 #1856

@Bibo-Joshi

Description

@Bibo-Joshi

Pure API updates:

  • Add class Dice
  • Add Bot.send_dice
  • Add Message.dice
  • Add Message.reply_dice
  • Add class BotCommand
  • Add Bot.get_my_commands
  • Add Bot.set_my_commands
  • Add Bot.commands property
  • Add parameter tgs_sticker to Bot.create_new_sticker_set
  • Add parameter tgs_sticker to Bot.add_sticker_to_set
  • Add StickerSet.thumb
  • Add Bot.set_sticker_set_thumb
  • Add warning about changed parameter order for Bot.create_new_sticker_set and Bot.add_sticker_to_set to release notes

My suggestions for according new functionality:

  • Add Filters.dice to filter messages containing a dice
  • Allow Filters.dice(1) and Filters.dice([1, 5]) to filters for dices with specific values
  • Somehow allow to treat a dice message as text message with the corresponding emoji via Filters.text and Message.effective_message?
  • Maybe add a description attribute to CommandHandler and a method Dispatcher.set_bot_commands that automatically sets the bot commands by retrieving them from the registered handlers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚙️ bot-apiaffected functionality: bot-api

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions