Comments (4)
Yes, nothing strange.
FYI in #144 (release 0.22..2) I've removed a incorrect retry logic that was applied also to errors raising from the bot.
BTW If you can hit the problem consistently, please try with 0.22.3 and keep an eye at the logs.
PS: recv_timeout
should be strictly greater than the HTTP long polling timeout (get_updates_poll_timeout_s
defaults to 30s), for example 40s is fine. I've updated the docs recently.
from telegram.
Hi @samm81,
can you show me a simple bot that triggers the telegram rate limit (I suppose on the "getUpdates" request)?
It will be useful to check the config you are using (for example if you have a custom value for the [:telegram, :get_updates_poll_timeout_s] config), which tesla client etc.
You could start from the telegram/example/example_bot.exs and tweak it to show the issue.
(BOT_TOKEN="...your token..." ./example/example_bot.exs).
Thank you!
from telegram.
Check out #146 .
I've included a retry rule in case of server side throttling.
Released in v0.22.3.
BTW, this should not happen in your case, even with a get_updates_poll_timeout_s = 0
the telegram server does not send me a 429, it just slow me down. Maybe this could happen if you send lots of messages ion a tight loop.
Please investigate a bit more on your side.
I'm closing this issue for now, feel free to ping back if your have any additional details or question.
from telegram.
hi, thanks for the quick response!
definitely nothing crazy for my config, config :tesla, adapter: {Tesla.Adapter.Hackney, [recv_timeout: 30_000]}
is all. I'm definitely not sending messages in a tight loop. I did set the max_bot_concurrency: 1
, as I was only expecting to have one client (me), maybe that's it?
I will try v0.22.3
, seems I was a whole minor version behind (v0.22.0
), thanks again!
from telegram.
Related Issues (18)
- HandShake error HOT 1
- Phoenix and Webhooks mode. HOT 1
- Callback query. Can't find chat field HOT 1
- sendPhoto silently does nothing? HOT 12
- Is there any reason this is not on Hex? HOT 2
- how can I silent the message Authenticity is not established by certificate path validation HOT 1
- `Poller` terminates on `{:error, "Bad Gateway"}` HOT 3
- bad child specification, more than one child specification has the id HOT 2
- handle_info in Telegram.ChatBot HOT 5
- add parameter "skip_updates" HOT 1
- bad child specification, more than one child specification has the id: Telegram.Bot.ChatBot.Chat.Supervisor HOT 2
- feature: proactively start a `ChatBot`
- Telegram WebApp tooling
- Configurable Api and Bot options
- [Question] How should I call the DSL from webhooks HOT 1
- Multiple custom commands not matching HOT 2
- Error on deps compile 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.