When a GIF is sent to the bot, it breaks down. The error message reads:
Attempted to call an undefined method named 'setFileUniqueId' of class 'TelegramBot\Api\Types\Animation'.
Upon inspecting the code, it was noticed that the 'file_unique_id' was specified in the Animation::$map, causing $method = 'set'.self::toCamelCase($key) in the code to look for setFileUniqueId.
When a GIF is sent to the bot, it breaks down. The error message reads:
Attempted to call an undefined method named 'setFileUniqueId' of class 'TelegramBot\Api\Types\Animation'.
Upon inspecting the code, it was noticed that the
'file_unique_id'
was specified in theAnimation::$map
, causing$method = 'set'.self::toCamelCase($key)
in the code to look forsetFileUniqueId
.