forward_message#
-
template<class Agent>
api_result<message_t, Agent&&> forward_message(Agent &&agent, forward_message_args_t args)# agent
is any object satisfying agent concept.Use this method to forward messages of any kind. Service messages can’t be forwarded. On success, the sent Message is returned.
-
struct forward_message_args_t#
Arguments that should be passed to
forward_message()
.Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
-
optional_t<boolean_t> disable_notification#
Sends the message silently. Users will receive a notification with no sound.
Message identifier in the chat specified in from_chat_id
-
optional_t<boolean_t> disable_notification#