-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
⚙️ bot-apiaffected functionality: bot-apiaffected functionality: bot-api
Description
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.commandsproperty - Add parameter
tgs_stickertoBot.create_new_sticker_set - Add parameter
tgs_stickertoBot.add_sticker_to_set - Add
StickerSet.thumb - Add
Bot.set_sticker_set_thumb - Add warning about changed parameter order for
Bot.create_new_sticker_setandBot.add_sticker_to_setto release notes
My suggestions for according new functionality:
- Add
Filters.diceto filter messages containing a dice - Allow
Filters.dice(1)andFilters.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.textandMessage.effective_message? -
Maybe add adescriptionattribute toCommandHandlerand a methodDispatcher.set_bot_commandsthat automatically sets the bot commands by retrieving them from the registered handlers?
rspadim
Metadata
Metadata
Assignees
Labels
⚙️ bot-apiaffected functionality: bot-apiaffected functionality: bot-api