[+] telegramsender

This commit is contained in:
rsgrinko committed 2022-06-20 11:42:06 +03:00
1 parent 60eb06d2e3
commit bb2302dfe1
3 files changed
+172 -4

No files matched your search

+5 -4
View File
@@ -54,10 +54,11 @@
User::logout();
}
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
$userId = User::getCurrentUserId();
try {
$userId = User::getCurrentUserId();
} catch (CoreException $e) {
$userId = null;
}
if(!empty($userId)) {
try {
$USER = new User($userId);