File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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-
469457func (c * nativeContext ) Set (key string , value interface {}) {
470458 c .lock .Lock ()
471459 defer c .lock .Unlock ()
You can’t perform that action at this time.
0 commit comments