remove methods that may not be accessible for the InaccessibleMessage type, add tests

This commit is contained in:
latan 2024-09-06 12:11:44 +03:00
parent ffb16aa628
commit 8dd67d5dd1
3 changed files with 152 additions and 700 deletions

View file

@ -200,76 +200,3 @@ reply_paid_media:
code: *assert-chat
fill: *fill-reply
ignore: *ignore-reply
copy_to:
method: copyMessage
code: *assert-chat
fill:
from_chat_id: self.chat.id
message_id: self.message_id
forward:
method: forwardMessage
code: *assert-chat
fill:
from_chat_id: self.chat.id
message_id: self.message_id
edit_text:
method: editMessageText
code: *assert-chat
fill: &message-target
chat_id: self.chat.id
message_id: self.message_id
edit_media:
method: editMessageMedia
fill: *message-target
code: *assert-chat
edit_reply_markup:
method: editMessageReplyMarkup
code: *assert-chat
fill: *message-target
delete_reply_markup:
method: editMessageReplyMarkup
code: *assert-chat
fill:
<<: *message-target
reply_markup: None
edit_live_location:
method: editMessageLiveLocation
code: *assert-chat
fill: *message-target
stop_live_location:
method: stopMessageLiveLocation
code: *assert-chat
fill: *message-target
edit_caption:
method: editMessageCaption
code: *assert-chat
fill: *message-target
delete:
method: deleteMessage
code: *assert-chat
fill: *message-target
pin:
method: pinChatMessage
code: *assert-chat
fill: *message-target
unpin:
method: unpinChatMessage
code: *assert-chat
fill: *message-target
react:
method: setMessageReaction
code: *assert-chat
fill: *message-target