Shortcut for:: await bot.send_message( update.effective_message.chat_id, message_thread_id=update.effective_message.message_thread_id, parse_mode=ParseMode.MARKDOWN, business_connection_id=self.business_connection_id,
(
self,
text: str,
disable_notification: ODVInput[bool] = DEFAULT_NONE,
reply_markup: "ReplyMarkup | None" = None,
entities: Sequence["MessageEntity"] | None = None,
protect_content: ODVInput[bool] = DEFAULT_NONE,
message_thread_id: ODVInput[int] = DEFAULT_NONE,
link_preview_options: ODVInput["LinkPreviewOptions"] = DEFAULT_NONE,
reply_parameters: "ReplyParameters | None" = None,
message_effect_id: str | None = None,
allow_paid_broadcast: bool | None = None,
suggested_post_parameters: "SuggestedPostParameters | None" = None,
*,
reply_to_message_id: int | None = None,
allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE,
disable_web_page_preview: bool | None = None,
do_quote: bool | (_ReplyKwargs | 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,
)
| 2302 | ) |
| 2303 | |
| 2304 | async def reply_markdown( |
| 2305 | self, |
| 2306 | text: str, |
| 2307 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 2308 | reply_markup: "ReplyMarkup | None" = None, |
| 2309 | entities: Sequence["MessageEntity"] | None = None, |
| 2310 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 2311 | message_thread_id: ODVInput[int] = DEFAULT_NONE, |
| 2312 | link_preview_options: ODVInput["LinkPreviewOptions"] = DEFAULT_NONE, |
| 2313 | reply_parameters: "ReplyParameters | None" = None, |
| 2314 | message_effect_id: str | None = None, |
| 2315 | allow_paid_broadcast: bool | None = None, |
| 2316 | suggested_post_parameters: "SuggestedPostParameters | None" = None, |
| 2317 | *, |
| 2318 | reply_to_message_id: int | None = None, |
| 2319 | allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE, |
| 2320 | disable_web_page_preview: bool | None = None, |
| 2321 | do_quote: bool | (_ReplyKwargs | None) = None, |
| 2322 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2323 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2324 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2325 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2326 | api_kwargs: JSONDict | None = None, |
| 2327 | ) -> "Message": |
| 2328 | """Shortcut for:: |
| 2329 | |
| 2330 | await bot.send_message( |
| 2331 | update.effective_message.chat_id, |
| 2332 | message_thread_id=update.effective_message.message_thread_id, |
| 2333 | parse_mode=ParseMode.MARKDOWN, |
| 2334 | business_connection_id=self.business_connection_id, |
| 2335 | direct_messages_topic_id=self.direct_messages_topic.topic_id, |
| 2336 | *args, |
| 2337 | **kwargs, |
| 2338 | ) |
| 2339 | |
| 2340 | Sends a message with Markdown version 1 formatting. |
| 2341 | |
| 2342 | For the documentation of the arguments, please see :meth:`telegram.Bot.send_message`. |
| 2343 | |
| 2344 | .. versionchanged:: 21.1 |
| 2345 | |reply_same_thread| |
| 2346 | |
| 2347 | .. versionchanged:: 22.0 |
| 2348 | |quote_removed| |
| 2349 | |
| 2350 | Note: |
| 2351 | :tg-const:`telegram.constants.ParseMode.MARKDOWN` is a legacy mode, retained by |
| 2352 | Telegram for backward compatibility. You should use :meth:`reply_markdown_v2` instead. |
| 2353 | |
| 2354 | Keyword Args: |
| 2355 | do_quote (:obj:`bool` | :obj:`dict`, optional): |do_quote| |
| 2356 | |
| 2357 | .. versionadded:: 20.8 |
| 2358 | |
| 2359 | Returns: |
| 2360 | :class:`telegram.Message`: On success, instance representing the message posted. |
| 2361 | """ |