Skip to content

Commit

Permalink
Fixed get_last_dialogs for telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Apr 23, 2024
1 parent 0e624e5 commit 0ee7c49
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ async def fetch_recent_chats(limit):

if number == None:
number = chat.entity.id

meta_information = None
if chat.entity.id != number:
meta_information = number
number = chat.entity.id
chat_names[str(chat.id)] = {
"number": number,
"title": chat.name or chat.title,
"type_of_entity": type_of_entity,
"unread_count": chat.unread_count,
"meta_information": meta_information,
}
return chat_names

Expand Down

0 comments on commit 0ee7c49

Please sign in to comment.