diff --git a/configs.go b/configs.go index d16de8c..f4b97c0 100644 --- a/configs.go +++ b/configs.go @@ -277,7 +277,7 @@ func (config AnimationConfig) name() string { } // method returns Telegram API method name for sending Animation. -func (config PhotoConfig) Animation() string { +func (config Animation) method() string { return "sendAnimation" }