mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Added 'as_reply_parameters' method & integrate with message reply methods (#1539)
* Added 'as_reply_parameters' method & integrate with message reply methods The 'as_reply_parameters' method is added to generate reply parameters in a message. This method was used in reply methods. * Added changelog
This commit is contained in:
parent
d2cd3d0fd8
commit
ac96f0d233
4 changed files with 164 additions and 95 deletions
|
|
@ -12,7 +12,9 @@ reply:
|
|||
code: *assert-chat
|
||||
fill: &fill-reply
|
||||
<<: *fill-answer
|
||||
reply_to_message_id: self.message_id
|
||||
reply_parameters: self.as_reply_parameters()
|
||||
ignore: &ignore-reply
|
||||
- reply_to_message_id
|
||||
|
||||
answer_animation:
|
||||
method: sendAnimation
|
||||
|
|
@ -23,6 +25,7 @@ reply_animation:
|
|||
method: sendAnimation
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_audio:
|
||||
method: sendAudio
|
||||
|
|
@ -33,6 +36,7 @@ reply_audio:
|
|||
method: sendAudio
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_contact:
|
||||
method: sendContact
|
||||
|
|
@ -43,6 +47,7 @@ reply_contact:
|
|||
method: sendContact
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_document:
|
||||
method: sendDocument
|
||||
|
|
@ -53,6 +58,7 @@ reply_document:
|
|||
method: sendDocument
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_game:
|
||||
method: sendGame
|
||||
|
|
@ -63,6 +69,7 @@ reply_game:
|
|||
method: sendGame
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_invoice:
|
||||
method: sendInvoice
|
||||
|
|
@ -73,6 +80,7 @@ reply_invoice:
|
|||
method: sendInvoice
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_location:
|
||||
method: sendLocation
|
||||
|
|
@ -83,6 +91,7 @@ reply_location:
|
|||
method: sendLocation
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_media_group:
|
||||
method: sendMediaGroup
|
||||
|
|
@ -93,6 +102,7 @@ reply_media_group:
|
|||
method: sendMediaGroup
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_photo:
|
||||
method: sendPhoto
|
||||
|
|
@ -103,6 +113,7 @@ reply_photo:
|
|||
method: sendPhoto
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_poll:
|
||||
method: sendPoll
|
||||
|
|
@ -113,6 +124,7 @@ reply_poll:
|
|||
method: sendPoll
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_dice:
|
||||
method: sendDice
|
||||
|
|
@ -123,6 +135,7 @@ reply_dice:
|
|||
method: sendDice
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_sticker:
|
||||
method: sendSticker
|
||||
|
|
@ -133,6 +146,7 @@ reply_sticker:
|
|||
method: sendSticker
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_venue:
|
||||
method: sendVenue
|
||||
|
|
@ -143,6 +157,7 @@ reply_venue:
|
|||
method: sendVenue
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_video:
|
||||
method: sendVideo
|
||||
|
|
@ -153,6 +168,7 @@ reply_video:
|
|||
method: sendVideo
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_video_note:
|
||||
method: sendVideoNote
|
||||
|
|
@ -163,6 +179,7 @@ reply_video_note:
|
|||
method: sendVideoNote
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_voice:
|
||||
method: sendVoice
|
||||
|
|
@ -173,12 +190,19 @@ reply_voice:
|
|||
method: sendVoice
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
answer_paid_media:
|
||||
method: sendPaidMedia
|
||||
code: *assert-chat
|
||||
fill: *fill-answer
|
||||
|
||||
reply_paid_media:
|
||||
method: sendPaidMedia
|
||||
code: *assert-chat
|
||||
fill: *fill-reply
|
||||
ignore: *ignore-reply
|
||||
|
||||
copy_to:
|
||||
method: copyMessage
|
||||
code: *assert-chat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue