Skip to content
Permalink
Browse files

change get callback user id

add parameters callback user
  • Loading branch information...
Anisan committed Sep 13, 2019
1 parent f77b210 commit a60731df9c82bd8fd2ebfe8b644cebdc9bcc070f
Showing with 5 additions and 2 deletions.
  1. +5 −2 modules/telegram/telegram.class.php
@@ -1167,9 +1167,12 @@ function processMessage() {
$text = $this->telegramBot->Text();
$callback = $this->telegramBot->Callback_Data();
if($callback) {
$chat_id = $data["callback_query"]["from"]["id"];
$chat_id = $data["callback_query"]["message"]["chat"]["id"];
$username = $data["callback_query"]["message"]["chat"]["username"];
$fullname = $data["callback_query"]["from"]["first_name"].' '.$data["callback_query"]["from"]["last_name"];
$fullname = $data["callback_query"]["message"]["chat"]["first_name"].' '.$data["callback_query"]["message"]["chat"]["last_name"];
$callback_chat_id = $data["callback_query"]["from"]["id"];
$callback_username = $data["callback_query"]["from"]["username"];
$callback_fullname = $data["callback_query"]["from"]["first_name"].' '.$data["callback_query"]["from"]["last_name"];
}else{
$chat_id = $this->telegramBot->ChatID();
$username = $this->telegramBot->Username();

0 comments on commit a60731d

Please sign in to comment.
You can’t perform that action at this time.