TelegramBot.forwardMessage

Forward message from from_chat_id to chat_id

  1. Message forwardMessage(T1 chat_id, T2 from_chat_id, int message_id)
    struct TelegramBot
    @trusted
    forwardMessage
    (
    T1
    T2
    )
  2. Message forwardMessage(ForwardMessageMethod m)

Parameters

chat_id T1

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

from_chat_id T2

Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)

message_id int

ID of the original message

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta