-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editMessage #913
Comments
Most often I have to do this during callback processing. Then I use something like this: use Telegram\Bot\Objects\Update;
class CallbackHandler {
public static function handle(Update $update){
$message = $update->getMessage();
$chat = $message->get('chat');
Telegram::editMessageText([
'chat_id' => $chat->get('id'),
'message_id' => $message->get('message_id'),
'text' => "updated text",
]);
}
} |
Next Telegram\Bot\Exceptions\TelegramResponseException: Bad Request: message text is empty in /var/www/admin/data/www/.site/vendor/irazasyed/telegram-bot-sdk/src/Exceptions/TelegramResponseException.php:67 |
@MaxMCP your text is empty, give code |
how can i editMessage? can you give sample?
The text was updated successfully, but these errors were encountered: