Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making requests when getting updates #1

Open
9px opened this issue Sep 7, 2015 · 3 comments
Open

Making requests when getting updates #1

9px opened this issue Sep 7, 2015 · 3 comments

Comments

@9px
Copy link

9px commented Sep 7, 2015

hi. telegram recently add an ability to perform a request to the telegram Bot API while sending an answer to the webhook.

can you do a simple implement of this feature in your code?

@alxmsl
Copy link
Owner

alxmsl commented Sep 7, 2015

Surely. You could use setWebhook and removeWebhook methods

@9px
Copy link
Author

9px commented Sep 7, 2015

the methods is for set and remove webhook URL.
this is not what i want :)
when we set a URL for webhook, any user command will be sent to the url.
recently Telegram API change and says that we can perform a new request (to sending a message) by answering the webhook.
in this stat, no new connection to Telegram server required for answering the user command :)

@alxmsl
Copy link
Owner

alxmsl commented Sep 7, 2015

I got it, sorry. This feature isn't supported by the library.
But I will add it in this month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants