Shortcut for:: await bot.forward_messages(from_chat_id=update.effective_user.id, *argss, **kwargs) For the documentation of the arguments, please see :meth:`telegram.Bot.forward_messages`. .. seealso:: :meth:`forward_from`, :meth:`forward_to`, :meth:`forward_messages_
(
self,
chat_id: int | str,
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,
)
| 2369 | ) |
| 2370 | |
| 2371 | async def forward_messages_to( |
| 2372 | self, |
| 2373 | chat_id: int | str, |
| 2374 | message_ids: Sequence[int], |
| 2375 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 2376 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 2377 | message_thread_id: int | None = None, |
| 2378 | direct_messages_topic_id: int | None = None, |
| 2379 | *, |
| 2380 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2381 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2382 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2383 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2384 | api_kwargs: JSONDict | None = None, |
| 2385 | ) -> tuple["MessageId", ...]: |
| 2386 | """Shortcut for:: |
| 2387 | |
| 2388 | await bot.forward_messages(from_chat_id=update.effective_user.id, *argss, **kwargs) |
| 2389 | |
| 2390 | For the documentation of the arguments, please see :meth:`telegram.Bot.forward_messages`. |
| 2391 | |
| 2392 | .. seealso:: :meth:`forward_from`, :meth:`forward_to`, :meth:`forward_messages_from`. |
| 2393 | |
| 2394 | .. versionadded:: 20.8 |
| 2395 | |
| 2396 | Returns: |
| 2397 | tuple[:class:`telegram.MessageId`]: On success, a tuple of :class:`~telegram.MessageId` |
| 2398 | of sent messages is returned. |
| 2399 | |
| 2400 | """ |
| 2401 | return await self.get_bot().forward_messages( |
| 2402 | from_chat_id=self.id, |
| 2403 | chat_id=chat_id, |
| 2404 | message_ids=message_ids, |
| 2405 | disable_notification=disable_notification, |
| 2406 | protect_content=protect_content, |
| 2407 | message_thread_id=message_thread_id, |
| 2408 | read_timeout=read_timeout, |
| 2409 | write_timeout=write_timeout, |
| 2410 | connect_timeout=connect_timeout, |
| 2411 | pool_timeout=pool_timeout, |
| 2412 | api_kwargs=api_kwargs, |
| 2413 | direct_messages_topic_id=direct_messages_topic_id, |
| 2414 | ) |
| 2415 | |
| 2416 | async def approve_join_request( |
| 2417 | self, |