get_chat_pinned_message()#
- Client.get_chat_pinned_message()#
Returns information about a newest pinned message in the chat. Use
Usable by Users Botssearch_messages()
to return all the pinned messages.- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str).replies (
int
, optional) – The number of subsequent replies to get for each message. Pass 0 for no reply at all or -1 for unlimited replies. Defaults to 1.