mirror of
https://github.com/avitoras/telegram-tui.git
synced 2025-07-27 11:20:31 +00:00
Merge branch 'dev' into kldk_dev
This commit is contained in:
commit
bc897fe7db
@ -27,8 +27,7 @@ class Chat(Widget):
|
||||
)
|
||||
global personid
|
||||
personid = 0
|
||||
self.notify = notify_func
|
||||
|
||||
self.notify = notify_fun
|
||||
|
||||
def _on_click(self):
|
||||
global personid
|
||||
@ -57,7 +56,6 @@ 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():
|
||||
@ -87,8 +85,6 @@ 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