diff --git a/lib/telegram/bot/types/chat_administrator_rights.rb b/lib/telegram/bot/types/chat_administrator_rights.rb index e1708f7..691f180 100644 --- a/lib/telegram/bot/types/chat_administrator_rights.rb +++ b/lib/telegram/bot/types/chat_administrator_rights.rb @@ -15,6 +15,9 @@ class ChatAdministratorRights < Base attribute? :can_post_messages, Types::Bool attribute? :can_edit_messages, Types::Bool attribute? :can_pin_messages, Types::Bool + attribute? :can_post_stories, Types::Bool + attribute? :can_edit_stories, Types::Bool + attribute? :can_delete_stories, Types::Bool attribute? :can_manage_topics, Types::Bool end end diff --git a/lib/telegram/bot/types/chat_member_administrator.rb b/lib/telegram/bot/types/chat_member_administrator.rb index c70c707..ab9c4ae 100644 --- a/lib/telegram/bot/types/chat_member_administrator.rb +++ b/lib/telegram/bot/types/chat_member_administrator.rb @@ -16,9 +16,12 @@ class ChatMemberAdministrator < Base attribute :can_change_info, Types::Bool attribute :can_invite_users, Types::Bool attribute? :can_post_messages, Types::Bool - attribute? :can_edit_messages, Types::Integer - attribute? :can_pin_messages, Types::Integer - attribute? :can_manage_topics, Types::Integer + attribute? :can_edit_messages, Types::Bool + attribute? :can_pin_messages, Types::Bool + attribute? :can_post_stories, Types::Bool + attribute? :can_edit_stories, Types::Bool + attribute? :can_delete_stories, Types::Bool + attribute? :can_manage_topics, Types::Bool attribute? :custom_title, Types::String end end