Story.reply()¶
- Story.reply()¶
Bound method reply_text of
Story.An alias exists as reply.
Use as a shortcut for:
await client.send_message( chat_id=story.chat.id, text="hello", reply_parameters=types.ReplyParameters( chat_id=chat_id, story_id=story.id ) )
Example
await story.reply_text("hello")- Parameters:
text (
str) – Text of the message to be sent.parse_mode (
ParseMode, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.entities (List of
MessageEntity) – List of special entities that appear in message text, which can be specified instead of parse_mode.link_preview_options (
LinkPreviewOptions, optional) – Options used for link preview generation for the message.disable_notification (
bool, optional) – Sends the message silently. Users will receive a notification with no sound.schedule_date (
datetime, optional) – Date when the message will be automatically sent.repeat_period (
int, optional) – Period after which the message will be sent again in seconds.protect_content (
bool, optional) – Protects the contents of the sent message from forwarding and saving.reply_markup (
InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply, optional) – Additional interface options. An object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
- Returns:
On success, the sent Message is returned.
- Raises:
RPCError – In case of a Telegram RPC error.