Class: TD::Types::ChatMemberStatus::Restricted
- Inherits:
-
TD::Types::ChatMemberStatus
- Object
- Dry::Struct
- Base
- TD::Types::ChatMemberStatus
- TD::Types::ChatMemberStatus::Restricted
- Defined in:
- lib/tdlib/types/chat_member_status/restricted.rb
Overview
The user is under certain restrictions in the chat. Not supported in basic groups and channels.
Instance Attribute Summary collapse
-
#is_member ⇒ Boolean
True, if the user is a member of the chat.
-
#permissions ⇒ TD::Types::ChatPermissions
User permissions in the chat.
-
#restricted_until_date ⇒ Integer
Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never.
Method Summary
Methods inherited from Base
Instance Attribute Details
#is_member ⇒ Boolean
True, if the user is a member of the chat.
11 12 13 |
# File 'lib/tdlib/types/chat_member_status/restricted.rb', line 11 def is_member @is_member end |
#permissions ⇒ TD::Types::ChatPermissions
User permissions in the chat.
11 12 13 |
# File 'lib/tdlib/types/chat_member_status/restricted.rb', line 11 def @permissions end |
#restricted_until_date ⇒ Integer
Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever.
11 12 13 |
# File 'lib/tdlib/types/chat_member_status/restricted.rb', line 11 def restricted_until_date @restricted_until_date end |