Use this method to forward messages of any kind. Telegram documentation: https://core.telegram.org/bots/api#forwardmessage :param disable_notification: Sends the message silently. Users will receive a notification with no sound :type disable_notification: :obj:`boo
(
self, chat_id: Union[int, str], from_chat_id: Union[int, str],
message_id: int, disable_notification: Optional[bool]=None,
protect_content: Optional[bool]=None,
timeout: Optional[int]=None,
message_thread_id: Optional[int]=None,
video_start_timestamp: Optional[int]=None,
direct_messages_topic_id: Optional[int]=None,
suggested_post_parameters: Optional[types.SuggestedPostParameters]=None,
message_effect_id: Optional[str]=None)
| 1893 | |
| 1894 | |
| 1895 | def forward_message( |
| 1896 | self, chat_id: Union[int, str], from_chat_id: Union[int, str], |
| 1897 | message_id: int, disable_notification: Optional[bool]=None, |
| 1898 | protect_content: Optional[bool]=None, |
| 1899 | timeout: Optional[int]=None, |
| 1900 | message_thread_id: Optional[int]=None, |
| 1901 | video_start_timestamp: Optional[int]=None, |
| 1902 | direct_messages_topic_id: Optional[int]=None, |
| 1903 | suggested_post_parameters: Optional[types.SuggestedPostParameters]=None, |
| 1904 | message_effect_id: Optional[str]=None) -> types.Message: |
| 1905 | """ |
| 1906 | Use this method to forward messages of any kind. |
| 1907 | |
| 1908 | Telegram documentation: https://core.telegram.org/bots/api#forwardmessage |
| 1909 | |
| 1910 | :param disable_notification: Sends the message silently. Users will receive a notification with no sound |
| 1911 | :type disable_notification: :obj:`bool` |
| 1912 | |
| 1913 | :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
| 1914 | :type chat_id: :obj:`int` or :obj:`str` |
| 1915 | |
| 1916 | :param from_chat_id: Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername) |
| 1917 | :type from_chat_id: :obj:`int` or :obj:`str` |
| 1918 | |
| 1919 | :param video_start_timestamp: New start timestamp for the forwarded video in the message |
| 1920 | :type video_start_timestamp: :obj:`int` |
| 1921 | |
| 1922 | :param message_id: Message identifier in the chat specified in from_chat_id |
| 1923 | :type message_id: :obj:`int` |
| 1924 | |
| 1925 | :param protect_content: Protects the contents of the forwarded message from forwarding and saving |
| 1926 | :type protect_content: :obj:`bool` |
| 1927 | |
| 1928 | :param timeout: Timeout in seconds for the request. |
| 1929 | :type timeout: :obj:`int` |
| 1930 | |
| 1931 | :param message_thread_id: Identifier of a message thread, in which the message will be sent |
| 1932 | :type message_thread_id: :obj:`int` |
| 1933 | |
| 1934 | :param direct_messages_topic_id: Identifier of the direct messages topic to which the message will be sent; |
| 1935 | required if the message is sent to a direct messages chat |
| 1936 | :type direct_messages_topic_id: :obj:`int` |
| 1937 | |
| 1938 | :param suggested_post_parameters: A JSON-serialized object containing the parameters of the suggested post to send; |
| 1939 | for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post |
| 1940 | is automatically declined. |
| 1941 | :type suggested_post_parameters: :class:`telebot.types.SuggestedPostParameters` |
| 1942 | |
| 1943 | :param message_effect_id: Unique identifier of the message effect to be added to the message; only available when forwarding to private chats |
| 1944 | :type message_effect_id: :obj:`str` |
| 1945 | |
| 1946 | :return: On success, the sent Message is returned. |
| 1947 | :rtype: :class:`telebot.types.Message` |
| 1948 | """ |
| 1949 | disable_notification = self.disable_notification if (disable_notification is None) else disable_notification |
| 1950 | protect_content = self.protect_content if (protect_content is None) else protect_content |
| 1951 | |
| 1952 | return types.Message.de_json( |