lib/tdlib/client_methods.rb
# Deletes all messages sent by the specified message sender in a chat.
# Supported only for supergroups; requires can_delete_messages administrator privileges.
#
# @param chat_id [Integer] Chat identifier.
# @param sender_id [TD::Types::MessageSender] Identifier of the sender of messages to delete.
# @return [TD::Types::Ok]
Deletes all messages sent by the specified message sender in a chat.
Supported only for supergroups; requires can_delete_messages administrator privileges.
Deletes all messages sent by the specified message sender in a chat . Supported only for supergroups ; requires can_delete_messages administrator privileges .
def delete_chat_messages_by_sender(chat_id:, sender_id:)
    broadcast('@type'     => 'deleteChatMessagesBySender',
              'chat_id'   => chat_id,
              'sender_id' => sender_id)
  end
def delete_chat_messages_by_sender ( chat_id : , sender_id : ) broadcast ( '@type' => 'deleteChatMessagesBySender' , 'chat_id' => chat_id , 'sender_id' => sender_id ) end
Deletes all messages sent by the specified message sender in a chat.
Deletes all messages sent by the specified message sender in a chat .
None
TD::Types::Ok
chat_id
None
sender_id
Identifier of the sender of messages to delete.
Identifier of the sender of messages to delete .