Skip to content

Commit

Permalink
fix chat member rights
Browse files Browse the repository at this point in the history
  • Loading branch information
seorgiy committed Dec 2, 2023
1 parent a3b8171 commit 69cbd4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lib/telegram/bot/types/chat_administrator_rights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions lib/telegram/bot/types/chat_member_administrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69cbd4d

Please sign in to comment.