đ§ send_rich_message
Use this method to send a rich message.
âī¸ Parameters
chat_id(intorstr): Unique identifier for the target chat or username of the target channel (in the format @channelusername)rich_message(InputRichMessage ): Rich message to sendbusiness_connection_id(str) (optional): Unique identifier of the business connection on behalf of which the message will be sentmessage_thread_id(int) (optional): Unique identifier for the target message thread (topic) of the forum; for forum supergroups onlydisable_notification(bool) (optional): Sends the message silently. Users will receive a notification with no sound.protect_content(bool) (optional): If True, the message content will be hidden for all users except for the target usermessage_effect_id(str) (optional): Unique identifier for the message effectreply_parameters(ReplyParameters ) (optional): Reply parameters.reply_markup(InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply ) (optional): Additional interface options.allow_paid_broadcast(bool) (optional): Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message.
đ˛ Returns
Message
đ Examples
-đĒĢ Required Parameters
await bot.send_rich_message(
chat_id=your_chat_id_here,
rich_message=your_rich_message_here
)
-đ All Parameters
await bot.send_rich_message(
chat_id=your_chat_id_here,
rich_message=your_rich_message_here,
business_connection_id=your_business_connection_id_here,
message_thread_id=your_message_thread_id_here,
disable_notification=your_disable_notification_here,
protect_content=your_protect_content_here,
message_effect_id=your_message_effect_id_here,
reply_parameters=your_reply_parameters_here,
reply_markup=your_reply_markup_here,
allow_paid_broadcast=your_allow_paid_broadcast_here
)