Message.forward()¶
- async Message.forward()[source]¶
Bound method forward of
Message.Use as a shortcut for:
await client.forward_messages( chat_id=chat_id, from_chat_id=message.chat.id, message_ids=message.id )
Example
await message.forward(chat_id)
- 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).message_thread_id (
int, optional) – Unique identifier of a message thread to which the message belongs; for supergroups onlydisable_notification (
bool, optional) – Sends the message silently. Users will receive a notification with no sound.schedule_date (
datetime, optional) – Date when the message will be automatically sent.
- Returns:
On success, the forwarded Message is returned.
- Raises:
RPCError – In case of a Telegram RPC error.