lib/tdlib/client_methods.rb
def toggle_message_sender_is_blocked(sender_id:, is_blocked:)
    broadcast('@type'      => 'toggleMessageSenderIsBlocked',
              'sender_id'  => sender_id,
              'is_blocked' => is_blocked)
  end
# Changes the block state of a message sender.
# Currently, only users and supergroup chats can be blocked.
#
# @param sender_id [TD::Types::MessageSender] Identifier of a message sender to block/unblock.
# @param is_blocked [Boolean] New value of is_blocked.
# @return [TD::Types::Ok]
Changes the block state of a message sender.
Currently, only users and supergroup chats can be blocked.
Changes the block state of a message sender . Currently only users and supergroup chats can be blocked .
def toggle_message_sender_is_blocked(sender_id:, is_blocked:)
    broadcast('@type'      => 'toggleMessageSenderIsBlocked',
              'sender_id'  => sender_id,
              'is_blocked' => is_blocked)
  end
def toggle_message_sender_is_blocked ( sender_id : , is_blocked : ) broadcast ( '@type' => 'toggleMessageSenderIsBlocked' , 'sender_id' => sender_id , 'is_blocked' => is_blocked ) end
Changes the block state of a message sender.
Changes the block state of a message sender .
None
TD::Types::Ok
sender_id
Identifier of a message sender to block/unblock.
Identifier of a message sender to block / unblock .
is_blocked
New value of is_blocked.
New value of is_blocked .