ebeneditos / telegram.bot

Develop a Telegram Bot with R
https://ebeneditos.github.io/telegram.bot/
GNU General Public License v3.0
107 stars 24 forks source link

Polling crash at message with audio #24

Closed nikitabessonov closed 2 years ago

nikitabessonov commented 2 years ago

Hello! First of all, thank you for this brilliant package for developing telegram bots with R 🙏 So, I just tried to catch an update with the audio, bot and I got a crash of polling with the message:

Error in if (handler$check_update(update)) { : argument is of length zero

My code:

library(telegram.bot)
updater <- Updater(My token)

h_audio_add <- MessageHandler(Audio_add, filters = MessageFilters$audio)

updater <- updater + h_audio_add
updater$start_polling(verbose = T, clean = T)

Maybe I did something incorrect, but I have tried all tricks to fix it and no-one was successful. Thank you guys!

My R version

platform       aarch64-apple-darwin20      
arch           aarch64                     
os             darwin20                    
system         aarch64, darwin20           
status                                     
major          4                           
minor          1.1                         
year           2021                        
month          08                          
day            10                          
svn rev        80725                       
language       R                           
version.string R version 4.1.1 (2021-08-10)
nickname       Kick Things 

My telegram.bot version 2.4.0