chore: disable username resolving

tgdb requires subscription
usinfobot requires `/start`
This commit is contained in:
AlexeyZavar
2026-04-24 20:35:04 +03:00
parent 598e696338
commit bc3b798d04
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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) {