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

Function chat_full_info

tests/test_chatfullinfo.py:48–102  ·  view source on GitHub ↗
(bot)

Source from the content-addressed store, hash-verified

46
47@pytest.fixture(scope="module")
48def chat_full_info(bot):
49 chat = ChatFullInfo(
50 ChatFullInfoTestBase.id_,
51 type=ChatFullInfoTestBase.type_,
52 accent_color_id=ChatFullInfoTestBase.accent_color_id,
53 max_reaction_count=ChatFullInfoTestBase.max_reaction_count,
54 accepted_gift_types=ChatFullInfoTestBase.accepted_gift_types,
55 title=ChatFullInfoTestBase.title,
56 username=ChatFullInfoTestBase.username,
57 sticker_set_name=ChatFullInfoTestBase.sticker_set_name,
58 can_set_sticker_set=ChatFullInfoTestBase.can_set_sticker_set,
59 permissions=ChatFullInfoTestBase.permissions,
60 slow_mode_delay=ChatFullInfoTestBase.slow_mode_delay,
61 message_auto_delete_time=ChatFullInfoTestBase.message_auto_delete_time,
62 bio=ChatFullInfoTestBase.bio,
63 linked_chat_id=ChatFullInfoTestBase.linked_chat_id,
64 location=ChatFullInfoTestBase.location,
65 has_private_forwards=ChatFullInfoTestBase.has_private_forwards,
66 has_protected_content=ChatFullInfoTestBase.has_protected_content,
67 has_visible_history=ChatFullInfoTestBase.has_visible_history,
68 join_to_send_messages=ChatFullInfoTestBase.join_to_send_messages,
69 join_by_request=ChatFullInfoTestBase.join_by_request,
70 has_restricted_voice_and_video_messages=(
71 ChatFullInfoTestBase.has_restricted_voice_and_video_messages
72 ),
73 is_forum=ChatFullInfoTestBase.is_forum,
74 active_usernames=ChatFullInfoTestBase.active_usernames,
75 emoji_status_custom_emoji_id=ChatFullInfoTestBase.emoji_status_custom_emoji_id,
76 emoji_status_expiration_date=ChatFullInfoTestBase.emoji_status_expiration_date,
77 has_aggressive_anti_spam_enabled=ChatFullInfoTestBase.has_aggressive_anti_spam_enabled,
78 has_hidden_members=ChatFullInfoTestBase.has_hidden_members,
79 available_reactions=ChatFullInfoTestBase.available_reactions,
80 background_custom_emoji_id=ChatFullInfoTestBase.background_custom_emoji_id,
81 profile_accent_color_id=ChatFullInfoTestBase.profile_accent_color_id,
82 profile_background_custom_emoji_id=ChatFullInfoTestBase.profile_background_custom_emoji_id,
83 unrestrict_boost_count=ChatFullInfoTestBase.unrestrict_boost_count,
84 custom_emoji_sticker_set_name=ChatFullInfoTestBase.custom_emoji_sticker_set_name,
85 business_intro=ChatFullInfoTestBase.business_intro,
86 business_location=ChatFullInfoTestBase.business_location,
87 business_opening_hours=ChatFullInfoTestBase.business_opening_hours,
88 birthdate=ChatFullInfoTestBase.birthdate,
89 personal_chat=ChatFullInfoTestBase.personal_chat,
90 first_name=ChatFullInfoTestBase.first_name,
91 last_name=ChatFullInfoTestBase.last_name,
92 can_send_paid_media=ChatFullInfoTestBase.can_send_paid_media,
93 is_direct_messages=ChatFullInfoTestBase.is_direct_messages,
94 parent_chat=ChatFullInfoTestBase.parent_chat,
95 rating=ChatFullInfoTestBase.rating,
96 unique_gift_colors=ChatFullInfoTestBase.unique_gift_colors,
97 paid_message_star_count=ChatFullInfoTestBase.paid_message_star_count,
98 first_profile_audio=ChatFullInfoTestBase.first_profile_audio,
99 )
100 chat.set_bot(bot)
101 chat._unfreeze()
102 return chat
103
104
105# Shortcut methods are tested in test_chat.py.

Callers

nothing calls this directly

Calls 3

ChatFullInfoClass · 0.90
_unfreezeMethod · 0.80
set_botMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…