mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
AIOG-T-93 added allow_sending_without_reply to send_video_note shortcuts
This commit is contained in:
parent
35ad58a348
commit
13601f30de
1 changed files with 27 additions and 1 deletions
|
|
@ -794,6 +794,7 @@ class Message(base.TelegramObject):
|
||||||
length: typing.Optional[base.Integer] = None,
|
length: typing.Optional[base.Integer] = None,
|
||||||
thumb: typing.Union[typing.Union[base.InputFile, base.String], None] = None,
|
thumb: typing.Union[typing.Union[base.InputFile, base.String], None] = None,
|
||||||
disable_notification: typing.Optional[base.Boolean] = None,
|
disable_notification: typing.Optional[base.Boolean] = None,
|
||||||
|
allow_sending_without_reply: typing.Optional[base.Boolean] = None,
|
||||||
reply_markup: typing.Union[
|
reply_markup: typing.Union[
|
||||||
InlineKeyboardMarkup,
|
InlineKeyboardMarkup,
|
||||||
ReplyKeyboardMarkup,
|
ReplyKeyboardMarkup,
|
||||||
|
|
@ -811,21 +812,32 @@ class Message(base.TelegramObject):
|
||||||
|
|
||||||
:param video_note: Video note to send.
|
:param video_note: Video note to send.
|
||||||
:type video_note: :obj:`typing.Union[base.InputFile, base.String]`
|
:type video_note: :obj:`typing.Union[base.InputFile, base.String]`
|
||||||
|
|
||||||
:param duration: Duration of sent video in seconds
|
:param duration: Duration of sent video in seconds
|
||||||
:type duration: :obj:`typing.Optional[base.Integer]`
|
:type duration: :obj:`typing.Optional[base.Integer]`
|
||||||
|
|
||||||
:param length: Video width and height
|
:param length: Video width and height
|
||||||
:type length: :obj:`typing.Optional[base.Integer]`
|
:type length: :obj:`typing.Optional[base.Integer]`
|
||||||
|
|
||||||
:param thumb: Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
|
:param thumb: Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
|
||||||
A thumbnail‘s width and height should not exceed 320.
|
A thumbnail‘s width and height should not exceed 320.
|
||||||
:type thumb: :obj:`typing.Union[typing.Union[base.InputFile, base.String], None]`
|
:type thumb: :obj:`typing.Union[typing.Union[base.InputFile, base.String], None]`
|
||||||
|
|
||||||
:param disable_notification: Sends the message silently. Users will receive a notification with no sound.
|
:param disable_notification: Sends the message silently. Users will receive a notification with no sound.
|
||||||
:type disable_notification: :obj:`typing.Optional[base.Boolean]`
|
:type disable_notification: :obj:`typing.Optional[base.Boolean]`
|
||||||
|
|
||||||
|
:param allow_sending_without_reply: Pass True, if the message should be sent
|
||||||
|
even if the specified replied-to message is not found
|
||||||
|
:type allow_sending_without_reply: :obj:`typing.Optional[base.Boolean]`
|
||||||
|
|
||||||
:param reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard,
|
:param reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard,
|
||||||
custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user
|
custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user
|
||||||
:type reply_markup: :obj:`typing.Union[types.InlineKeyboardMarkup,
|
:type reply_markup: :obj:`typing.Union[types.InlineKeyboardMarkup,
|
||||||
types.ReplyKeyboardMarkup, types.ReplyKeyboardRemove, types.ForceReply, None]`
|
types.ReplyKeyboardMarkup, types.ReplyKeyboardRemove, types.ForceReply, None]`
|
||||||
|
|
||||||
:param reply: fill 'reply_to_message_id'
|
:param reply: fill 'reply_to_message_id'
|
||||||
:type reply: :obj:`base.Boolean`
|
:type reply: :obj:`base.Boolean`
|
||||||
|
|
||||||
:return: On success, the sent Message is returned.
|
:return: On success, the sent Message is returned.
|
||||||
:rtype: :obj:`types.Message`
|
:rtype: :obj:`types.Message`
|
||||||
"""
|
"""
|
||||||
|
|
@ -837,6 +849,7 @@ class Message(base.TelegramObject):
|
||||||
thumb=thumb,
|
thumb=thumb,
|
||||||
disable_notification=disable_notification,
|
disable_notification=disable_notification,
|
||||||
reply_to_message_id=self.message_id if reply else None,
|
reply_to_message_id=self.message_id if reply else None,
|
||||||
|
allow_sending_without_reply=allow_sending_without_reply,
|
||||||
reply_markup=reply_markup,
|
reply_markup=reply_markup,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -1697,6 +1710,7 @@ class Message(base.TelegramObject):
|
||||||
length: typing.Optional[base.Integer] = None,
|
length: typing.Optional[base.Integer] = None,
|
||||||
thumb: typing.Union[typing.Union[base.InputFile, base.String], None] = None,
|
thumb: typing.Union[typing.Union[base.InputFile, base.String], None] = None,
|
||||||
disable_notification: typing.Optional[base.Boolean] = None,
|
disable_notification: typing.Optional[base.Boolean] = None,
|
||||||
|
allow_sending_without_reply: typing.Optional[base.Boolean] = None,
|
||||||
reply_markup: typing.Union[
|
reply_markup: typing.Union[
|
||||||
InlineKeyboardMarkup,
|
InlineKeyboardMarkup,
|
||||||
ReplyKeyboardMarkup,
|
ReplyKeyboardMarkup,
|
||||||
|
|
@ -1714,21 +1728,32 @@ class Message(base.TelegramObject):
|
||||||
|
|
||||||
:param video_note: Video note to send.
|
:param video_note: Video note to send.
|
||||||
:type video_note: :obj:`typing.Union[base.InputFile, base.String]`
|
:type video_note: :obj:`typing.Union[base.InputFile, base.String]`
|
||||||
|
|
||||||
:param duration: Duration of sent video in seconds
|
:param duration: Duration of sent video in seconds
|
||||||
:type duration: :obj:`typing.Optional[base.Integer]`
|
:type duration: :obj:`typing.Optional[base.Integer]`
|
||||||
|
|
||||||
:param length: Video width and height
|
:param length: Video width and height
|
||||||
:type length: :obj:`typing.Optional[base.Integer]`
|
:type length: :obj:`typing.Optional[base.Integer]`
|
||||||
|
|
||||||
:param thumb: Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
|
:param thumb: Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
|
||||||
A thumbnail‘s width and height should not exceed 320.
|
A thumbnail‘s width and height should not exceed 320.
|
||||||
:type thumb: :obj:`typing.Union[typing.Union[base.InputFile, base.String], None]`
|
:type thumb: :obj:`typing.Union[typing.Union[base.InputFile, base.String], None]`
|
||||||
|
|
||||||
:param disable_notification: Sends the message silently. Users will receive a notification with no sound.
|
:param disable_notification: Sends the message silently. Users will receive a notification with no sound.
|
||||||
:type disable_notification: :obj:`typing.Optional[base.Boolean]`
|
:type disable_notification: :obj:`typing.Optional[base.Boolean]`
|
||||||
|
|
||||||
|
:param allow_sending_without_reply: Pass True, if the message should be sent
|
||||||
|
even if the specified replied-to message is not found
|
||||||
|
:type allow_sending_without_reply: :obj:`typing.Optional[base.Boolean]`
|
||||||
|
|
||||||
:param reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard,
|
:param reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard,
|
||||||
custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user
|
custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user
|
||||||
:type reply_markup: :obj:`typing.Union[types.InlineKeyboardMarkup,
|
:type reply_markup: :obj:`typing.Union[types.InlineKeyboardMarkup,
|
||||||
types.ReplyKeyboardMarkup, types.ReplyKeyboardRemove, types.ForceReply, None]`
|
types.ReplyKeyboardMarkup, types.ReplyKeyboardRemove, types.ForceReply, None]
|
||||||
|
`
|
||||||
:param reply: fill 'reply_to_message_id'
|
:param reply: fill 'reply_to_message_id'
|
||||||
:type reply: :obj:`base.Boolean`
|
:type reply: :obj:`base.Boolean`
|
||||||
|
|
||||||
:return: On success, the sent Message is returned.
|
:return: On success, the sent Message is returned.
|
||||||
:rtype: :obj:`types.Message`
|
:rtype: :obj:`types.Message`
|
||||||
"""
|
"""
|
||||||
|
|
@ -1740,6 +1765,7 @@ class Message(base.TelegramObject):
|
||||||
thumb=thumb,
|
thumb=thumb,
|
||||||
disable_notification=disable_notification,
|
disable_notification=disable_notification,
|
||||||
reply_to_message_id=self.message_id if reply else None,
|
reply_to_message_id=self.message_id if reply else None,
|
||||||
|
allow_sending_without_reply=allow_sending_without_reply,
|
||||||
reply_markup=reply_markup,
|
reply_markup=reply_markup,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue