diff --git a/context.go b/context.go index 36d0aa36..30a13ab3 100644 --- a/context.go +++ b/context.go @@ -145,10 +145,6 @@ type Context interface { // See Respond from bot.go. Respond(resp ...*CallbackResponse) error - // AnswerWebApp sends a response to web app query. - // See AnswerWebApp from bot.go. - AnswerWebApp(result Result) error - // Get retrieves data from the context. Get(key string) interface{} @@ -458,14 +454,6 @@ func (c *nativeContext) Answer(resp *QueryResponse) error { return c.b.Answer(c.u.Query, resp) } -func (c *nativeContext) AnswerWebApp(result Result) error { - if c.u.Message == nil || c.u.Message.WebAppData == nil { - return errors.New("telebot: context web app is nil") - } - _, err := c.b.AnswerWebApp(c.u.Query, result) - return err -} - func (c *nativeContext) Set(key string, value interface{}) { c.lock.Lock() defer c.lock.Unlock()