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

Class ChatFullInfoTestBase

tests/test_chatfullinfo.py:106–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105# Shortcut methods are tested in test_chat.py.
106class ChatFullInfoTestBase:
107 id_ = -28767330
108 max_reaction_count = 2
109 title = "ToledosPalaceBot - Group"
110 type_ = "group"
111 username = "username"
112 sticker_set_name = "stickers"
113 can_set_sticker_set = False
114 permissions = ChatPermissions(
115 can_send_messages=True,
116 can_change_info=False,
117 can_invite_users=True,
118 )
119 slow_mode_delay = dtm.timedelta(seconds=30)
120 message_auto_delete_time = dtm.timedelta(60)
121 bio = "I'm a Barbie Girl in a Barbie World"
122 linked_chat_id = 11880
123 location = ChatLocation(Location(123, 456), "Barbie World")
124 has_protected_content = True
125 has_visible_history = True
126 has_private_forwards = True
127 join_to_send_messages = True
128 join_by_request = True
129 has_restricted_voice_and_video_messages = True
130 is_forum = True
131 active_usernames = ["These", "Are", "Usernames!"]
132 emoji_status_custom_emoji_id = "VeryUniqueCustomEmojiID"
133 emoji_status_expiration_date = dtm.datetime.now(tz=UTC).replace(microsecond=0)
134 has_aggressive_anti_spam_enabled = True
135 has_hidden_members = True
136 available_reactions = [
137 ReactionTypeEmoji(ReactionEmoji.THUMBS_DOWN),
138 ReactionTypeCustomEmoji("custom_emoji_id"),
139 ]
140 business_intro = BusinessIntro("Title", "Description", None)
141 business_location = BusinessLocation("Address", Location(123, 456))
142 business_opening_hours = BusinessOpeningHours(
143 "Country/City",
144 [BusinessOpeningHoursInterval(opening, opening + 60) for opening in (0, 24 * 60)],
145 )
146 accent_color_id = 1
147 background_custom_emoji_id = "background_custom_emoji_id"
148 profile_accent_color_id = 2
149 profile_background_custom_emoji_id = "profile_background_custom_emoji_id"
150 unrestrict_boost_count = 100
151 custom_emoji_sticker_set_name = "custom_emoji_sticker_set_name"
152 birthdate = Birthdate(1, 1)
153 personal_chat = Chat(3, "private", "private")
154 first_name = "first_name"
155 last_name = "last_name"
156 can_send_paid_media = True
157 accepted_gift_types = AcceptedGiftTypes(True, True, True, True, True)
158 is_direct_messages = True
159 parent_chat = Chat(4, "channel", "channel")
160 rating = UserRating(level=1, rating=2, current_level_rating=3, next_level_rating=4)
161 unique_gift_colors = UniqueGiftColors(
162 model_custom_emoji_id="model_custom_emoji_id",
163 symbol_custom_emoji_id="symbol_custom_emoji_id",

Callers

nothing calls this directly

Calls 15

ChatPermissionsClass · 0.90
ChatLocationClass · 0.90
LocationClass · 0.90
ReactionTypeEmojiClass · 0.90
BusinessIntroClass · 0.90
BusinessLocationClass · 0.90
BirthdateClass · 0.90
ChatClass · 0.90
AcceptedGiftTypesClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…