我尝试为telethon中的电报创建简单的客户端。当我登录我的用户时,我想获得所有订阅的频道。您有任何想法吗?从那以后我如何获得消息?
self._client = TelegramClient('session_name1',
self._api_id,
self._api_hash)
self._client.connect()
if not self._client.is_user_authorized():
self._client.send_code_request(self._phone_number)
self._me = self._client.sign_in(self._phone_number, input('Enter code: '))
result = self._client(functions.users.GetFullUserRequest(
id=self._username))
print(result.stringify())
```python