replace EditTextOnly state with Edit in button_edit_callback function

This commit is contained in:
Akulij 2025-05-02 13:33:35 +03:00
parent e1eb94a030
commit d447fe0b19

View File

@ -246,7 +246,11 @@ async fn button_edit_callback(
let lang = "ru".to_string(); let lang = "ru".to_string();
dialogue dialogue
.update(State::EditTextOnly { literal, lang }) .update(State::Edit {
literal,
lang,
is_caption_set: false,
})
.await?; .await?;
bot.send_message(q.from.id, "Send text of button").await?; bot.send_message(q.from.id, "Send text of button").await?;