mirror of
https://github.com/avitoras/telegram-tui.git
synced 2025-07-27 19:26:10 +00:00
Compare commits
No commits in common. "bc897fe7dbf24ba6ea410aea73be87395314baee" and "f77f0057d8aa6b62667d9ac01e9fd0f1fd76b594" have entirely different histories.
bc897fe7db
...
f77f0057d8
@ -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):
|
||||
"""Класс виджета сообщений для окна диалога"""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user