Compare commits

..

No commits in common. "bc897fe7dbf24ba6ea410aea73be87395314baee" and "f77f0057d8aa6b62667d9ac01e9fd0f1fd76b594" have entirely different histories.

3 changed files with 10 additions and 6 deletions

View File

@ -27,7 +27,8 @@ class Chat(Widget):
)
global personid
personid = 0
self.notify = notify_fun
self.notify = notify_func
def _on_click(self):
global personid
@ -56,6 +57,7 @@ class Dialog(Widget):
for messages1 in self.telegram_client.iter_dialogs(self.personid, limit=5):
messages.append(messages1.text)
def compose(self):
messages = self.messages
with Vertical():
@ -85,6 +87,8 @@ class Dialog(Widget):
self.message_text = self.query_one("#msg_input").value
await self.telegram_client.send_message(personid, str(self.message_text))
class Message(Widget):
"""Класс виджета сообщений для окна диалога"""

View File

@ -1,4 +1,4 @@
"""Получите свои API-ключи на https://my.telegram.org/apps"""
api_id = 12345
api_hash = "0123456789abcdef"
api_id = 21321
api_hash = "yourhashherebro"