Skip to content

Commit 3ba2966

Browse files
committed
context: remove AnswerWebApp
1 parent 65f19ba commit 3ba2966

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

context.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ type Context interface {
145145
// See Respond from bot.go.
146146
Respond(resp ...*CallbackResponse) error
147147

148-
// AnswerWebApp sends a response to web app query.
149-
// See AnswerWebApp from bot.go.
150-
AnswerWebApp(result Result) error
151-
152148
// Get retrieves data from the context.
153149
Get(key string) interface{}
154150

@@ -458,14 +454,6 @@ func (c *nativeContext) Answer(resp *QueryResponse) error {
458454
return c.b.Answer(c.u.Query, resp)
459455
}
460456

461-
func (c *nativeContext) AnswerWebApp(result Result) error {
462-
if c.u.Message == nil || c.u.Message.WebAppData == nil {
463-
return errors.New("telebot: context web app is nil")
464-
}
465-
_, err := c.b.AnswerWebApp(c.u.Query, result)
466-
return err
467-
}
468-
469457
func (c *nativeContext) Set(key string, value interface{}) {
470458
c.lock.Lock()
471459
defer c.lock.Unlock()

0 commit comments

Comments
 (0)