webhooks

Clear “pending_update_count” in Telegram Bot

两盒软妹~` 提交于 2019-12-01 03:56:31
I want to clear all pending_update_count in my bot! The output of below command : https://api.telegram.org/botxxxxxxxxxxxxxxxx/getWebhookInfo Obviously I replaced the real API token with xxx is this : { "ok":true,"result": { "url":"", "has_custom_certificate":false, "pending_update_count":5154 } } As you can see, I have 5154 unread updates til now!! ( I'm pretty sure this pending updates are errors! Because no one uses this Bot! It's just a test Bot) By the way, this pending_update_count number are increasing so fast! Now that I'm writing this post the number increased 51 and reached to 5205 !

How can create menu for telegram bot in bot father?

淺唱寂寞╮ 提交于 2019-12-01 03:44:12
问题 I'm new in telegram bot and see this bot: that but when type /start show menu to me and with out type slash to command just fire the menu button,how can i create menu in telegram like that bot? 回答1: You must add the return ajax call a string like this: '{ "keyboard": [["uno :+1:"],["uno \ud83d\udc4d", "due"],["uno", "due","tre"],["uno", "due","tre","quattro"]]}'; The result is: 来源: https://stackoverflow.com/questions/41956166/how-can-create-menu-for-telegram-bot-in-bot-father

SendGrid incoming mail webhook - how do I secure my endpoint

夙愿已清 提交于 2019-12-01 03:33:35
I'm currently using SendGrid's Inbound Parse Webhook to feed emails to my application. I've been able to get it working by pointing the URL to an endpoint which my application has exposed. SendGrid just sends the email in the form of a JSON format HTTP POST request to this endpoint and I just process each request internally. My question is, now that I have it working, how do I ensure that only SendGrid can use this endpoint? At the moment, anyone can utilise this HTTP POST endpoint and pretend that an email has been sent to the application. Can I get SendGrid to send some sort of unique key to

Slack webhook - Which IPs should I open?

时光怂恿深爱的人放手 提交于 2019-12-01 02:37:04
We want to use Slack Webhook (Outgoing Webhook) with an internal web service. Our company is behind a firewall, so outside connections must be whitelisted. It appears that Slack has multiple addresses it will send the API request from, and they don't seem to be documented. Which IPs/Ports should we open in the firewall (whitelist) in order to allow slack's outgoing webhooks to connect to our internal web service? An alternative could be using a VPN tunnel service to expose your internal webserver the Internet, e.g. with ngrok . I can confirm it works with Slack (I use it every day for Slack

Github webhooks - pre-push hooks

随声附和 提交于 2019-12-01 02:34:54
问题 My requirement is that whenever developers are pushing to github, then before the push a CI build should trigger on Jenkins server. If that build fails, then push to github should be rejected. I need to write hooks for this, but I don't want to write client-side hooks as they can be disabled by developers. I want server-side github webhooks or pre-receive hooks. Now, is this even possible to achieve ? If yes, then where to begin? Do I need knowledge of Rest API? Do I need to write shell

Clear “pending_update_count” in Telegram Bot

霸气de小男生 提交于 2019-12-01 00:18:19
问题 I want to clear all pending_update_count in my bot! The output of below command : https://api.telegram.org/botxxxxxxxxxxxxxxxx/getWebhookInfo Obviously I replaced the real API token with xxx is this : { "ok":true,"result": { "url":"", "has_custom_certificate":false, "pending_update_count":5154 } } As you can see, I have 5154 unread updates til now!! ( I'm pretty sure this pending updates are errors! Because no one uses this Bot! It's just a test Bot) By the way, this pending_update_count

Slack webhook - Which IPs should I open?

冷暖自知 提交于 2019-11-30 22:05:12
问题 We want to use Slack Webhook (Outgoing Webhook) with an internal web service. Our company is behind a firewall, so outside connections must be whitelisted. It appears that Slack has multiple addresses it will send the API request from, and they don't seem to be documented. Which IPs/Ports should we open in the firewall (whitelist) in order to allow slack's outgoing webhooks to connect to our internal web service? 回答1: An alternative could be using a VPN tunnel service to expose your internal

Laravel queues not working

六月ゝ 毕业季﹏ 提交于 2019-11-30 11:37:32
I am using laravel queues for commenting on the facebook post. When ever i recieve data from facebook webhook, based on the recieved details i am commenting on the post. To handle 100 responses at once from facebook webhook i am using laravel queues, so that it can execute one by one. I have used the step by step process as mentioned in https://scotch.io/tutorials/why-laravel-queues-are-awesome public function webhooks(Request $request) { $data = file_get_contents('php://input'); Log::info("Request Cycle with Queues Begins"); $job = (new webhookQueue($data)->delay(10); $this->dispatch($job);

Send message back from Facebook webview to bot

放肆的年华 提交于 2019-11-30 08:53:17
问题 Had written bot on ms bot frameworks for Facebook Messenger which creates carousel using custom channel data attachment with web_url which enables messenger extensions: "messenger_extensions": true . We have Added Messenger Extensions on a webview page but it is not clear how to send message with an attachment from this webview page back to messenger and therefore to bot framework. <!DOCTYPE html> <html> <body> <style type="text/css"> .button { background-color: #4CAF50; /* Green */ border:

Facebook page leadgen webhook returns error 102 Server Failure

一笑奈何 提交于 2019-11-30 04:57:48
问题 Facebook page leadgen webhook won't work for my page and associated app. If I test the webhook I setup with the testing tool and click the "Track status" button, the issued realtime update object is associated to this error: 102 Server failure My facebook setup consist of: a business account an ad account a page an app that is subscribed to webhooks for the page leadgens. Testing the webhook from the app setup does effectively work (on https://developers.facebook.com/apps/:my-app-id/webhooks/