You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
633 B

3 years ago
package handlers
import (
"context"
"gitea.russia9.dev/russia9/muskrat/storage"
"gopkg.in/telebot.v3"
3 years ago
)
func Add(ctx telebot.Context) error {
//return ctx.Send(bot.Layout.Text(ctx, "rules"), bot.Layout.Markup(ctx, "rules"))
err := storage.SetState(context.Background(), ctx.Sender().ID, "phone")
if err != nil {
return err
}
return ctx.Send("Введите <b>номер телефона</b>:")
}
func Accept(ctx telebot.Context) error {
err := storage.SetState(context.Background(), ctx.Sender().ID, "phone")
if err != nil {
return err
}
return ctx.Edit("Введите <b>номер телефона</b>:")
}