Comments (8)
Do you care to elaborate? Bot.Start()
does work for me.
from telebot.
Sorry for coming back late.
First of all the inline example crashes as it is because of the sequence:
go messages(bot) go queries(bot) bot.Start(1 * time.Second)
I had to put the line bot.Start(1 * time.Second)
before the call to messages and queries.
Then, after that change, simply nothing happens.
I tried the code on a mac and on a win7 machine. same behaviour in both cases.
I also tried to use bot.Start () in other programs but it has always the same behaviour: it simply never returns anything
from telebot.
Alright, let's see what's going on. First of all, can you provide your full code please? I just tried the inline example in the initial order and it works just fine here.
Can you please provide the stack trace of the crash you're talking about?
from telebot.
The code I am using is the exact copy of the inline example with a valid token.
When I run it from command line, nothing happens as if the program were hanging
from telebot.
First of all the inline example crashes as it is because of the sequence:
Can you provide a stack trace please?
from telebot.
I am sincerely embarrassed, but I cannot reproduce the crash. I have the same behaviour whether I put the line bot.Start(1 * time.Second) before or after the call to messages(bot).
I apologize for the confusion.
However, as stated previously, when I execute the inline example, I have no response. Can you please tell me what I should expect?
from telebot.
Well, you definitely shouldn't do bot.Start
in the last place. It blocks on polling internally. Can you please add some debug prints and see whether it gets stuck on bot.Start
precisely. If it is bot.Start
indeed, as it seems to me, you might be running in some networking issues or whatever.
And please make sure the bot you testing is the one you put in BOT_TOKEN
.
from telebot.
Closing for the time being.
from telebot.
Related Issues (20)
- Dynamic handlers and concurrent handlers read and write HOT 2
- Is there a way to add callback button without passing pointer to the bot.Handle? HOT 1
- Documents sucks
- Is it possible to pass a logger interface to enable custom logger instance? HOT 2
- How to handle ReplyButton safe for concurrent use?
- What is the best way to edit HTML message? HOT 1
- quick reactions
- about zh-CN HOT 1
- context: add RespondText and RespondAlert shortcuts for the Respond
- telebot: add AllUpdates flag for the long poller settings
- proposal: add a way to set the caption for Album
- api 6.5: implement HOT 1
- errors: bot is not a member of the channel chat
- How to generate a pop-up window when click the button? HOT 1
- Can't use localizer with layout HOT 2
- The callback loads forever HOT 1
- Telegram strips non-accessible URLs
- Payment example HOT 1
- [BUG] `telegram: chat not found (400)` HOT 2
- Skipping pending updates using LongPoller HOT 2
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 telebot.