rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

Bot can't promote admin with change info permission #264

Closed kanphis closed 7 years ago

kanphis commented 7 years ago

Found bug in code https://github.com/rubenlagus/TelegramBots/blob/master/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/PromoteChatMember.java#L28 https://core.telegram.org/bots/api#promotechatmember

parameter in Bot API named can_change_info, not can_change_information

Cause of that I can't promote admins with this permission through bot Please, fix this 🙏

rubenlagus commented 7 years ago

I'll make a hotfix tonight, thx