Skip to content
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

How to force a reply for a edited message #747

Open
ProgramCpp opened this issue Aug 26, 2024 · 0 comments
Open

How to force a reply for a edited message #747

ProgramCpp opened this issue Aug 26, 2024 · 0 comments

Comments

@ProgramCpp
Copy link

Hi, I have the below flow for the user,

  • bot send an inline keyboard
  • user enters the input
  • bot edits the previous message sent to prompt for the next input, from a standard keyboard.

my problem is, I cannot force a reply from user to the edited message. Something like,

resp, _ := bot.Send(tgbotapi.EditMessageTextConfig{
			BaseEdit: tgbotapi.BaseEdit{
				ChatID: update.FromChat().ID,
				MessageID: update.CallbackQuery.Message.MessageID,
				// NOT POSSIBLE: cannot send forceReply when editing a message
				ReplyMarkup: tgbotapi.ForceReply{ 
					ForceReply: true,
				},
			},
			Text: "enter to-address:",
		})

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ProgramCpp and others