webhooks

Python viber Bot is not working as described in the documentation. It doesn't give any respond in the viber mobile app

Python viber Bot is not working as described in the documentation. It doesn't give any respond in the viber mobile app Question: I have followed the official viber doc, using python: https://developers.viber.com/docs/api/python-bot-api/ The server has been deployed properly (https) and the set_webhook responds: {"status":0,"status_message":"ok","chat_hostname":"XX-CHAT-01_","event_types":["subscribed","unsubscribed","webhook","client_status","conversation_started","action","delivered","failed","message","seen"]} Now, the viber mobile app is not working as expected. The …

Total answers: 2

how create a python service, executed when needed

how create a python service, executed when needed Question: I want to create a notification service, that will be used in diferent applications. But I would run it only sometimes. How I achieve this? I will try to use webhooks, informing my service to notify something basically, I don’t keep my service running. I would …

Total answers: 1

Message handlers aren't invoked in aiogram bot on webhooks

Message handlers aren't invoked in aiogram bot on webhooks Question: I’m launching an aiogram bot on webhooks locally using ngrok tunnel, but instead of proper responses, the bot returns 200 OK with almost nothing in response body, thus a user doesn’t see anything in a chat. Bot’s main.py driver looks like this: from aiogram import …

Total answers: 1

Send perfectly aligned tabular text message in Google Chat Space using webhook

Send perfectly aligned tabular text message in Google Chat Space using webhook Question: I have created a Google chat space. I have a script which does some calculation and the final data is in pandas Dataframe. I want to send the data in this Dataframe as Daily alerts in tabular form in the chat space. …

Total answers: 1

webhook with fastapi: I am not getting webhooks with Python

webhook with fastapi: I am not getting webhooks with Python Question: I am trying to get json data on my localhost. But I am getting a problem with Request.json. main.py from fastapi import FastAPI, Request app = FastAPI() @app.post("/webhook") async def get_body(request: Request): print(request.json) return await request.json() server.py import requests import json webhook_url = "http://127.0.0.1:4000/webhook" …

Total answers: 1

Shopify doesn't stop sending webhook to Flask app

Shopify doesn't stop sending webhook to Flask app Question: I have a Flask app that listens to incoming Shopify webhooks, does something, and responds with 200. However, Shopify keeps sending the webhook as if my app responded with something other than 200. When I simulate this with curl: curl -H “Content-Type: application/json” -D /tmp/dump.log -X …

Total answers: 2

How do I receive Github Webhooks in Python

How do I receive Github Webhooks in Python Question: Github offers to send Post-receive hooks to an URL of your choice when there’s activity on your repo. I want to write a small Python command-line/background (i.e. no GUI or webapp) application running on my computer (later on a NAS), which continually listens for those incoming …

Total answers: 5