Shortcut for:: await bot.forward_message(chat_id=update.effective_chat.id, *args, **kwargs) For the documentation of the arguments, please see :meth:`telegram.Bot.forward_message`. .. seealso:: :meth:`forward_to`, :meth:`forward_messages_from`, :meth:`forward_messages
(
self,
from_chat_id: str | int,
message_id: int,
disable_notification: ODVInput[bool] = DEFAULT_NONE,
protect_content: ODVInput[bool] = DEFAULT_NONE,
message_thread_id: int | None = None,
video_start_timestamp: int | None = None,
direct_messages_topic_id: int | None = None,
suggested_post_parameters: "SuggestedPostParameters | None" = None,
message_effect_id: str | None = None,
*,
read_timeout: ODVInput[float] = DEFAULT_NONE,
write_timeout: ODVInput[float] = DEFAULT_NONE,
connect_timeout: ODVInput[float] = DEFAULT_NONE,
pool_timeout: ODVInput[float] = DEFAULT_NONE,
api_kwargs: JSONDict | None = None,
)
| 2678 | ) |
| 2679 | |
| 2680 | async def forward_from( |
| 2681 | self, |
| 2682 | from_chat_id: str | int, |
| 2683 | message_id: int, |
| 2684 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 2685 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 2686 | message_thread_id: int | None = None, |
| 2687 | video_start_timestamp: int | None = None, |
| 2688 | direct_messages_topic_id: int | None = None, |
| 2689 | suggested_post_parameters: "SuggestedPostParameters | None" = None, |
| 2690 | message_effect_id: str | None = None, |
| 2691 | *, |
| 2692 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2693 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2694 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2695 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2696 | api_kwargs: JSONDict | None = None, |
| 2697 | ) -> "Message": |
| 2698 | """Shortcut for:: |
| 2699 | |
| 2700 | await bot.forward_message(chat_id=update.effective_chat.id, *args, **kwargs) |
| 2701 | |
| 2702 | For the documentation of the arguments, please see :meth:`telegram.Bot.forward_message`. |
| 2703 | |
| 2704 | .. seealso:: :meth:`forward_to`, :meth:`forward_messages_from`, :meth:`forward_messages_to` |
| 2705 | |
| 2706 | .. versionadded:: 20.0 |
| 2707 | |
| 2708 | Returns: |
| 2709 | :class:`telegram.Message`: On success, instance representing the message posted. |
| 2710 | |
| 2711 | """ |
| 2712 | return await self.get_bot().forward_message( |
| 2713 | chat_id=self.id, |
| 2714 | from_chat_id=from_chat_id, |
| 2715 | message_id=message_id, |
| 2716 | video_start_timestamp=video_start_timestamp, |
| 2717 | disable_notification=disable_notification, |
| 2718 | read_timeout=read_timeout, |
| 2719 | write_timeout=write_timeout, |
| 2720 | connect_timeout=connect_timeout, |
| 2721 | pool_timeout=pool_timeout, |
| 2722 | api_kwargs=api_kwargs, |
| 2723 | protect_content=protect_content, |
| 2724 | message_thread_id=message_thread_id, |
| 2725 | direct_messages_topic_id=direct_messages_topic_id, |
| 2726 | suggested_post_parameters=suggested_post_parameters, |
| 2727 | message_effect_id=message_effect_id, |
| 2728 | ) |
| 2729 | |
| 2730 | async def forward_to( |
| 2731 | self, |
nothing calls this directly
no test coverage detected