mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-24 22:44:42 +00:00
chore: disable username resolving
tgdb requires subscription usinfobot requires `/start`
This commit is contained in:
+1
-1
@@ -159,4 +159,4 @@ Flatpak: https://github.com/0FL01/AyuGramDesktop-flatpak
|
||||
|
||||
### Боты
|
||||
|
||||
- [TelegramDB](https://t.me/tgdatabase) для получения юзернейма по ID
|
||||
- [TelegramDB](https://t.me/tgdatabase) для получения юзернейма по ID (до закрытия бесплатной версии 2 апреля 2026)
|
||||
|
||||
@@ -161,4 +161,4 @@ Enjoy using **AyuGram**? Consider sending us a tip!
|
||||
|
||||
### Bots
|
||||
|
||||
- [TelegramDB](https://t.me/tgdatabase) for username lookup by ID
|
||||
- [TelegramDB](https://t.me/tgdatabase) for username lookup by ID (until closing free inline mode at 2 April 2026)
|
||||
|
||||
@@ -877,7 +877,8 @@ void searchPeerInner(const QString &peerId, Main::Session *session, const Userna
|
||||
}
|
||||
|
||||
void searchPeer(const QString &peerId, Main::Session *session, const UsernameResolverCallback &callback) {
|
||||
if (!session) {
|
||||
callback(QString(), nullptr);
|
||||
/*if (!session) {
|
||||
callback(QString(), nullptr);
|
||||
return;
|
||||
}
|
||||
@@ -893,7 +894,7 @@ void searchPeer(const QString &peerId, Main::Session *session, const UsernameRes
|
||||
{
|
||||
searchPeerInner(peerId, session, callback);
|
||||
});
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void searchUserById(ID userId, Main::Session *session, const UsernameResolverCallback &callback) {
|
||||
|
||||
Reference in New Issue
Block a user