lib/tdlib/client_methods.rb
def ban_chat_member(chat_id:, member_id:, banned_until_date:, revoke_messages:)
    broadcast('@type'             => 'banChatMember',
              'chat_id'           => chat_id,
              'member_id'         => member_id,
              'banned_until_date' => banned_until_date,
              'revoke_messages'   => revoke_messages)
  end
# Bans a member in a chat.
# Members can't be banned in private or secret chats.
# In supergroups and channels, the user will not be able to return to the group on their own using invite links,
#   etc., unless unbanned first.
#
# @param chat_id [Integer] Chat identifier.
# @param member_id [TD::Types::MessageSender] Member identifier.
# @param banned_until_date [Integer] Point in time (Unix timestamp) when the user will be unbanned; 0 if never.
#   If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is
#   considered to be banned forever.
#   Ignored in basic groups and if a chat is banned.
# @param revoke_messages [Boolean] Pass true to delete all messages in the chat for the user that is being removed.
#   Always true for supergroups and channels.
# @return [TD::Types::Ok]
Bans a member in a chat.
Members can't be banned in private or secret chats.
In supergroups and channels, the user will not be able to return to the group on their own using invite links,
etc., unless unbanned first.
Bans a member in a chat . Members can ' t be banned in private or secret chats . In supergroups and channels the user will not be able to return to the group on their own using invite links etc . unless unbanned first .
def ban_chat_member(chat_id:, member_id:, banned_until_date:, revoke_messages:)
    broadcast('@type'             => 'banChatMember',
              'chat_id'           => chat_id,
              'member_id'         => member_id,
              'banned_until_date' => banned_until_date,
              'revoke_messages'   => revoke_messages)
  end
def ban_chat_member ( chat_id : , member_id : , banned_until_date : , revoke_messages : ) broadcast ( '@type' => 'banChatMember' , 'chat_id' => chat_id , 'member_id' => member_id , 'banned_until_date' => banned_until_date , 'revoke_messages' => revoke_messages ) end
Bans a member in a chat.
Bans a member in a chat .
None
TD::Types::Ok
chat_id
None
member_id
None
banned_until_date
Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned.
Point in time ( Unix timestamp ) when the user will be unbanned ; 0 if never . If the user is banned for more than 366 days or for less than 30 seconds from the current time the user is considered to be banned forever . Ignored in basic groups and if a chat is banned .
revoke_messages
Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and channels.
Pass true to delete all messages in the chat for the user that is being removed . Always true for supergroups and channels .