Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot API 5.3 #1229

Merged
merged 15 commits into from
Jun 26, 2021
Merged

Bot API 5.3 #1229

merged 15 commits into from
Jun 26, 2021

Conversation

TiiFuchs
Copy link
Member

@TiiFuchs TiiFuchs commented Jun 25, 2021

Personalized Commands

  • New Class BotCommandScope
  • New parameters scope and language_code for setMyCommands method
  • New parameters scope and language_code for getMyCommands method
  • New deleteMyCommands method

Custom Placeholders

  • New field input_field_placeholder in ReplyKeyboardMarkup
  • New field input_field_placeholder in ForceReply

And More

  • Split ChatMember class into subclasses (ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned)
  • Renamed kickChatMember to banChatMember
  • Renamed getChatMembersCount to getChatMemberCount (missing s on Member)
  • file_unique_id in PhotoSize and small_file_unique_id, big_file_unique_id in ChatPhoto (nothing to do here, I guess)

@TiiFuchs TiiFuchs mentioned this pull request Jun 25, 2021
10 tasks
src/Entities/BotCommandScope/BotCommandScopeChatMember.php Outdated Show resolved Hide resolved
src/Request.php Show resolved Hide resolved
src/Request.php Show resolved Hide resolved
src/Entities/ChatMember/Factory.php Outdated Show resolved Hide resolved
src/Entities/Factory.php Outdated Show resolved Hide resolved
@TiiFuchs
Copy link
Member Author

I tested the ChatMember functionality (100%) and the BotCommandScopes (only BotCommandScopeDefault and BotCommandScopeAllChatAdministrators).

I figured the $data array needs to be optional in the constructor and fixed that.

@noplanman noplanman merged commit 97bc2c8 into php-telegram-bot:develop Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants