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

markup will disappear after using force reply #713

Open
ghost opened this issue Jul 7, 2024 · 0 comments
Open

markup will disappear after using force reply #713

ghost opened this issue Jul 7, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 7, 2024

I will register some markups when the robot is initialized:


var (
	markup     = &tel.ReplyMarkup{ResizeKeyboard: true}
	btnProfile = markup.Text("👤")
	btnDeposit = markup.Text("💰")
	btnRent    = markup.Text("⚡️")
	btnManual  = markup.Text("📖")
	btnOrder   = markup.Text("📦")
	btnSupport = markup.Text("☁️")
)

func init() {
	markup.Reply(
		markup.Row(btnProfile, btnDeposit, btnRent),
		markup.Row(btnManual, btnOrder, btnSupport),
	)
}
func (b *Bot) handlerRent(ctx tel.Context) (err error) {
	return ctx.Send(fmt.Sprintf(`
️⬇️ input number`), tel.ModeHTML, tel.ForceReply)
}

This will cause the markup I registered previously to become invalid.

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

0 participants