feat(telegram): add mentions-only trigger mode (#142)

This commit is contained in:
banteg
2026-01-15 21:56:31 +04:00
committed by GitHub
parent 6c5763b014
commit cabb796b19
15 changed files with 644 additions and 31 deletions
+7 -1
View File
@@ -13,7 +13,11 @@ def test_parse_incoming_update_maps_fields() -> None:
"text": "hello",
"chat": {"id": 123, "type": "supergroup", "is_forum": True},
"from": {"id": 99},
"reply_to_message": {"message_id": 5, "text": "prev"},
"reply_to_message": {
"message_id": 5,
"text": "prev",
"from": {"id": 77, "is_bot": True, "username": "ReplyBot"},
},
},
}
@@ -26,6 +30,8 @@ def test_parse_incoming_update_maps_fields() -> None:
assert msg.text == "hello"
assert msg.reply_to_message_id == 5
assert msg.reply_to_text == "prev"
assert msg.reply_to_is_bot is True
assert msg.reply_to_username == "ReplyBot"
assert msg.sender_id == 99
assert msg.thread_id is None
assert msg.is_topic_message is None