telegram-bot-ruby icon indicating copy to clipboard operation
telegram-bot-ruby copied to clipboard

cant send any file after add twitter gem/faraday gem

Open mm580486 opened this issue 8 years ago • 0 comments

hi guys

i created a robot and on last days and works perfectly , but after add twitter gem i cant send any file/video/photo to telegram and return this error

Telegram API has returned the error. (ok: "false", error_code: "400", description: "Bad Request: wrong persistent file_id specified: Wrong character in the string") (Telegram::Bot::Exceptions::ResponseError) from /root/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/telegram-bot-ruby-0.8.4/lib/telegram/bot/api.rb:58:inmethod_missing'`

bot.api.sendVideo(chat_id: message.chat.id, video: File.new("./#{video.filename}"),duration: video.duration,caption: video.title.to_s + ' @idownload_bot',text: video.description.to_s+ ' @idownload_bot') and bot.api.sendPhoto(chat_id: message.chat.id,caption: description.to_s + ' @idownload_bot', photo: File.new(open(image))) i think this error is about like faraday , its true ? how fix it :'(((

mm580486 avatar Oct 12 '17 08:10 mm580486