how can i make a longpolling connection with telegram api ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 636
Joined: Fri Dec 04, 2015 9:26 pm

how can i make a longpolling connection with telegram api ?

Post by skinkairewalker »

hi everyone ! i am trying Telegram API ( https://api.telegram.org/botTOKEN/FUNCTION ) , using : ReceiveHTTPMemory . but is a bit slowly ...

what would be a good resource to request the fastest Telegram api?
CURL would be a good solution?
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: how can i make a longpolling connection with telegram ap

Post by RSBasic »

skinkairewalker wrote:CURL would be a good solution?
As far as I know, yes.
Image
Image
Seymour Clufley
Addict
Addict
Posts: 1233
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: how can i make a longpolling connection with telegram ap

Post by Seymour Clufley »

For anyone who needs this in the future, a framework now exists. An example of doing exactly what Skinkairewalker was asking about is given in this post.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Post Reply