Shortcut for:: await bot.forward_messages(chat_id=update.effective_user.id, *argss, **kwargs) For the documentation of the arguments, please see :meth:`telegram.Bot.forward_messages`. .. seealso:: :meth:`forward_to`, :meth:`forward_from`, :meth:`forward_messages_to`.
(
self,
from_chat_id: str | int,
message_ids: Sequence[int],
disable_notification: ODVInput[bool] = DEFAULT_NONE,
protect_content: ODVInput[bool] = DEFAULT_NONE,
message_thread_id: int | None = None,
direct_messages_topic_id: int | 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,
)
| 2324 | ) |
| 2325 | |
| 2326 | async def forward_messages_from( |
| 2327 | self, |
| 2328 | from_chat_id: str | int, |
| 2329 | message_ids: Sequence[int], |
| 2330 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 2331 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 2332 | message_thread_id: int | None = None, |
| 2333 | direct_messages_topic_id: int | None = None, |
| 2334 | *, |
| 2335 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2336 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2337 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2338 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2339 | api_kwargs: JSONDict | None = None, |
| 2340 | ) -> tuple["MessageId", ...]: |
| 2341 | """Shortcut for:: |
| 2342 | |
| 2343 | await bot.forward_messages(chat_id=update.effective_user.id, *argss, **kwargs) |
| 2344 | |
| 2345 | For the documentation of the arguments, please see :meth:`telegram.Bot.forward_messages`. |
| 2346 | |
| 2347 | .. seealso:: :meth:`forward_to`, :meth:`forward_from`, :meth:`forward_messages_to`. |
| 2348 | |
| 2349 | .. versionadded:: 20.8 |
| 2350 | |
| 2351 | Returns: |
| 2352 | tuple[:class:`telegram.MessageId`]: On success, a tuple of :class:`~telegram.MessageId` |
| 2353 | of sent messages is returned. |
| 2354 | |
| 2355 | """ |
| 2356 | return await self.get_bot().forward_messages( |
| 2357 | chat_id=self.id, |
| 2358 | from_chat_id=from_chat_id, |
| 2359 | message_ids=message_ids, |
| 2360 | disable_notification=disable_notification, |
| 2361 | protect_content=protect_content, |
| 2362 | message_thread_id=message_thread_id, |
| 2363 | read_timeout=read_timeout, |
| 2364 | write_timeout=write_timeout, |
| 2365 | connect_timeout=connect_timeout, |
| 2366 | pool_timeout=pool_timeout, |
| 2367 | api_kwargs=api_kwargs, |
| 2368 | direct_messages_topic_id=direct_messages_topic_id, |
| 2369 | ) |
| 2370 | |
| 2371 | async def forward_messages_to( |
| 2372 | self, |