sendSticker() public method

$params = [ 'chat_id' => '', 'sticker' => '', 'disable_notification' => '', 'reply_to_message_id' => '', 'reply_markup' => '', ];
public sendSticker ( array $params ) : Message
$params array
return Telegram\Bot\Objects\Message
Beispiel #1
0
            } else {
                $telegram->commandsHandler(true);
            }
            break;
        case "photo":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_photo']);
            break;
        case "voice":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_voice']);
            break;
        case "audio":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_audio']);
            break;
        case "document":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_document']);
            break;
        case "sticker":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_sticker']);
            $telegram->sendSticker($arup['message']['chat']['id'], 'BQADAgADaQAD9XK2AT3CQzskuCdXAg');
            break;
        case "video":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_video']);
            break;
        case "location":
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['recv_location']);
            break;
        default:
            $telegram->sendMessage($arup['message']['chat']['id'], $lang['error_generic']);
            break;
    }
}