lib/tdlib/client_methods.rb
def pin_chat_message(chat_id:, message_id:, disable_notification:, only_for_self:)
    broadcast('@type'                => 'pinChatMessage',
              'chat_id'              => chat_id,
              'message_id'           => message_id,
              'disable_notification' => disable_notification,
              'only_for_self'        => only_for_self)
  end
# Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel.
#
# @param chat_id [Integer] Identifier of the chat.
# @param message_id [Integer] Identifier of the new pinned message.
# @param disable_notification [Boolean] True, if there must be no notification about the pinned message.
#   Notifications are always disabled in channels and private chats.
# @param only_for_self [Boolean] True, if the message needs to be pinned for one side only; private chats only.
# @return [TD::Types::Ok]
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel.
Pins a message in a chat ; requires can_pin_messages rights or can_edit_messages rights in the channel .
def pin_chat_message(chat_id:, message_id:, disable_notification:, only_for_self:)
    broadcast('@type'                => 'pinChatMessage',
              'chat_id'              => chat_id,
              'message_id'           => message_id,
              'disable_notification' => disable_notification,
              'only_for_self'        => only_for_self)
  end
def pin_chat_message ( chat_id : , message_id : , disable_notification : , only_for_self : ) broadcast ( '@type' => 'pinChatMessage' , 'chat_id' => chat_id , 'message_id' => message_id , 'disable_notification' => disable_notification , 'only_for_self' => only_for_self ) end
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel.
Pins a message in a chat ; requires can_pin_messages rights or can_edit_messages rights in the channel .
None
TD::Types::Ok
chat_id
Identifier of the chat.
Identifier of the chat .
message_id
Identifier of the new pinned message.
Identifier of the new pinned message .
disable_notification
True, if there must be no notification about the pinned message. Notifications are always disabled in channels and private chats.
True if there must be no notification about the pinned message . Notifications are always disabled in channels and private chats .
only_for_self
True, if the message needs to be pinned for one side only; private chats only.
True if the message needs to be pinned for one side only ; private chats only .