Method
__init__
(
self,
obj,
chat_id,
user_id,
business_connection_id=None,
message_thread_id=None,
bot_id=None,
)
Source from the content-addressed store, hash-verified
| 105 | """ |
| 106 | |
| 107 | def __init__( |
| 108 | self, |
| 109 | obj, |
| 110 | chat_id, |
| 111 | user_id, |
| 112 | business_connection_id=None, |
| 113 | message_thread_id=None, |
| 114 | bot_id=None, |
| 115 | ): |
| 116 | self.obj = obj |
| 117 | res = obj.get_data( |
| 118 | chat_id=chat_id, |
| 119 | user_id=user_id, |
| 120 | business_connection_id=business_connection_id, |
| 121 | message_thread_id=message_thread_id, |
| 122 | bot_id=bot_id, |
| 123 | ) |
| 124 | self.data = copy.deepcopy(res) |
| 125 | self.chat_id = chat_id |
| 126 | self.user_id = user_id |
| 127 | self.bot_id = bot_id |
| 128 | self.business_connection_id = business_connection_id |
| 129 | self.message_thread_id = message_thread_id |
| 130 | |
| 131 | def __enter__(self): |
| 132 | return self.data |
Callers
nothing calls this directly
Tested by
no test coverage detected