Comments (7)
What would you suggest doing? A chan
for errors?
Is there anywhere else this is an issue besides UpdateChan
?
from telegram-bot-api.
I've been trying to work out what the most idiomatic pattern would be for this, but have come up short so far sadly.
Perhaps a log interface then a logger instance can be passed in (either the standard golang logger, or any of the other loggers that implement identical methods)?
from telegram-bot-api.
I wonder if it wouldn't just be easier to implement the function in your own code, considering the entire thing is 18 lines of code.
from telegram-bot-api.
hmm point, I had kind of expected it to rely on internal functions but it seems it doesn't.
If the functions used by it are considered public and not likely to change to private, then that does seem like a decent option in this case!
from telegram-bot-api.
All it's doing is looping a call to BotAPI.GetUpdates
, which is always going to stay public.
I'm going to close this issue. If anyone has suggestions later, feel free to mention them and I'll reopen it!
from telegram-bot-api.
@Syfaro maybe we can use logrus instead log pkg because logrus offer a lot of logging layers (panic, debug, info, error, fatal, etc).
from telegram-bot-api.
I am having this problem too. I am using Uber's zap, with jsonl format. The internal logger keep printing out logs, e.g getUpdates resp:/req
.
Of course those lines are not use anyway, but maybe in the future I would like to collect those logs too, so it needs to be configurable.
from telegram-bot-api.
Related Issues (20)
- Is this project abandoned? HOT 1
- how to deploy on a paas platform with webhook HOT 2
- InlineKeyboardButton web_app HOT 4
- Show Alert
- doesn't receive updates from inline keyboard HOT 1
- Why is this repository not updated? HOT 3
- tgbotapi.NewMediaGroup function does not work correctly
- Unmarshal error for banChatMember method HOT 3
- panic in random times HOT 1
- When can we expect the next update?
- Reaction events
- Default handler processes updates out of order HOT 1
- How to banChatMember?
- Get event chat added bot?
- How do I check if a message sent from a user belongs to a media group?
- Protected content
- GetChatAdministrators docs say it doesn't return bots, but it does
- PLEASE ARCHIVE THIS PROJECT IF YOU'RE NOT GOING TO MAINTAIN IT HOT 1
- telegram bot apiv5. need inditificate command in caption under photo.
- How to create main bot menu button
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-api.