Comments (3)
just noticed, will close as a duplicate issue then, thank you for your help!
from telegram-bot-ruby.
this is the error when I update the library to the latest version instead:
Traceback (most recent call last):
8: from test.rb:5:in `<main>'
7: from /home/pi/.rvm/gems/ruby-2.5.0/gems/telegram-bot-ruby-0.19.2/lib/telegram/bot/client.rb:10:in `run'
6: from /home/pi/.rvm/gems/ruby-2.5.0/gems/telegram-bot-ruby-0.19.2/lib/telegram/bot/client.rb:20:in `run'
5: from test.rb:6:in `block in <main>'
4: from /home/pi/.rvm/gems/ruby-2.5.0/gems/telegram-bot-ruby-0.19.2/lib/telegram/bot/client.rb:27:in `listen'
3: from /home/pi/.rvm/gems/ruby-2.5.0/gems/telegram-bot-ruby-0.19.2/lib/telegram/bot/client.rb:35:in `fetch_updates'
2: from /home/pi/.rvm/gems/ruby-2.5.0/gems/telegram-bot-ruby-0.19.2/lib/telegram/bot/client.rb:35:in `each'
1: from /home/pi/.rvm/gems/ruby-2.5.0/gems/telegram-bot-ruby-0.19.2/lib/telegram/bot/client.rb:36:in `block in fetch_updates'
test.rb:7:in `block (2 levels) in <main>': undefined method `text' for #<Telegram::Bot::Types::ChatMemberUpdated:0x0285b3e8> (NoMethodError)
from telegram-bot-ruby.
Hey @syxanash,
You need to check message type first, see #226 (comment)
from telegram-bot-ruby.
Related Issues (20)
- AnswerInlineQuery not work correctly HOT 2
- How to read channel messages?
- Forward message with images HOT 1
- User chats HOT 1
- Get list of join request to channel
- ArgumentError if message is not a string HOT 3
- Question. How do i listen only new message after bot was started? HOT 2
- How to receive Voice messages? HOT 1
- Periodic Net::ReadTimeout errors causing restart for 24/7 Bot HOT 3
- Support for ChatMember types HOT 4
- Add VCR for specs HOT 1
- `ForceReply#force_reply` type and optionality HOT 1
- Return defined types (Ruby objects) HOT 3
- Update `thumb` fields to `thumbnail`
- Webhooks empty ChatMember HOT 2
- TERM trap does not work anymore as in README HOT 5
- Uploading large files with local API causes Net::ReadTimeout with #<TCPSocket:(closed)> HOT 1
- Message.text is nil even thought the schema says it can not be HOT 4
- Getting a Missing attribute: "result" (Dry::Struct::MissingAttributeError) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-bot-ruby.