(bot)
| 41 | |
| 42 | @pytest.fixture(scope="module") |
| 43 | def chat(bot): |
| 44 | chat = Chat( |
| 45 | ChatTestBase.id_, |
| 46 | title=ChatTestBase.title, |
| 47 | type=ChatTestBase.type_, |
| 48 | username=ChatTestBase.username, |
| 49 | is_forum=True, |
| 50 | first_name=ChatTestBase.first_name, |
| 51 | last_name=ChatTestBase.last_name, |
| 52 | is_direct_messages=ChatTestBase.is_direct_messages, |
| 53 | ) |
| 54 | chat.set_bot(bot) |
| 55 | chat._unfreeze() |
| 56 | return chat |
| 57 | |
| 58 | |
| 59 | class ChatTestBase: |