pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

No support Bot API 4.5 and Bot API 4.6

Open heyyyoyy opened this issue 6 years ago • 6 comments

Bot API 4.6

  • Supported Polls 2.0.

  • Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the parameters is_anonymous, type, allows_multiple_answers, correct_option_id, is_closed options to the method sendPoll.

  • Added the object KeyboardButtonPollType and the field request_poll to the object KeyboardButton.

  • Added updates about changes of user answers in non-anonymous polls, represented by the object PollAnswer and the field poll_answer in the Update object.

  • Added the fields total_voter_count, is_anonymous, type, allows_multiple_answers, correct_option_id to the Poll object.

  • Bots can now send polls to private chats.

  • Added more information about the bot in response to the getMe request: added the fields can_join_groups, can_read_all_group_messages and supports_inline_queries to the User object.

  • Added the optional field language to the MessageEntity object.

Bot API 4.5

  • Added support for two new MessageEntity types, underline and strikethrough.

  • Added support for nested MessageEntity objects. Entities can now contain other entities. If two entities have common characters then one of them is fully contained inside the other.

  • Added support for nested entities and the new tags <u>/<ins> (for underlined text) and <s>/<strike>/<del> (for strikethrough text) in parse mode HTML.

  • Added a new parse mode, MarkdownV2, which supports nested entities and two new entities __ (for underlined text) and ~ (for strikethrough text). Parse mode Markdown remains unchanged for backward compatibility.

  • Added the field file_unique_id to the objects Animation, Audio, Document, PassportFile, PhotoSize, Sticker, Video, VideoNote, Voice, File and the fields small_file_unique_id and big_file_unique_id to the object ChatPhoto. The new fields contain a unique file identifier, which is supposed to be the same over time and for different bots, but can't be used to download or reuse the file.

  • Added the field custom_title to the ChatMember object.

  • Added the new method setChatAdministratorCustomTitle to manage the custom titles of administrators promoted by the bot.

  • Added the field slow_mode_delay to the Chat object.

heyyyoyy avatar Mar 25 '20 09:03 heyyyoyy

I'm trying to make a poll NOT anonymous, but i can't.. "Got an unexpecter keyword argument 'is_anonymous'. .. and.. how can I get answer and publish results only when poll its closed? i would like to store the results in file.

TeeElPrez avatar Apr 08 '20 10:04 TeeElPrez

@eternnoir is there any roadmap to bring the api to date? Thanks!

elffuhs avatar May 04 '20 21:05 elffuhs

Can this be closed?

MasterGroosha avatar Oct 27 '20 17:10 MasterGroosha

also 5.0 not supported.. there is a new method copy message and other minor improvements

coder2020official avatar Nov 23 '20 16:11 coder2020official

If somone have a full list of missing features. i will integrate them

SwissCorePy avatar Jun 28 '21 07:06 SwissCorePy

@MasterGroosha done)

heyyyoyy avatar Jun 28 '21 08:06 heyyyoyy