MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / ExternalReplyInfoTestBase

Class ExternalReplyInfoTestBase

tests/test_reply.py:58–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58class ExternalReplyInfoTestBase:
59 origin = MessageOriginUser(
60 dtm.datetime.now(dtm.timezone.utc).replace(microsecond=0), User(1, "user", False)
61 )
62 chat = Chat(1, Chat.SUPERGROUP)
63 message_id = 123
64 link_preview_options = LinkPreviewOptions(True)
65 giveaway = Giveaway(
66 (Chat(1, Chat.CHANNEL), Chat(2, Chat.SUPERGROUP)),
67 dtm.datetime.now(dtm.timezone.utc).replace(microsecond=0),
68 1,
69 )
70 paid_media = PaidMediaInfo(5, [PaidMediaPreview(10, 10, 10)])
71 checklist = Checklist(
72 title="Checklist Title",
73 tasks=[
74 ChecklistTask(text="Item 1", id=1),
75 ChecklistTask(text="Item 2", id=2),
76 ],
77 )
78 live_photo = LivePhoto(
79 file_id="file_id",
80 file_unique_id="file_unique_id",
81 width=100,
82 height=100,
83 duration=dtm.timedelta(seconds=10),
84 photo=[],
85 mime_type="image/jpeg",
86 file_size=1024,
87 )
88
89
90class TestExternalReplyInfoWithoutRequest(ExternalReplyInfoTestBase):

Callers

nothing calls this directly

Calls 10

MessageOriginUserClass · 0.90
UserClass · 0.90
ChatClass · 0.90
LinkPreviewOptionsClass · 0.90
GiveawayClass · 0.90
PaidMediaInfoClass · 0.90
PaidMediaPreviewClass · 0.90
ChecklistClass · 0.90
ChecklistTaskClass · 0.90
LivePhotoClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…