skip to Main Content

How To Host My Telegram Bot [JAVA] Using Heroku & Maven and GitHub? – Telegram API

My pom.xml File : <modelVersion>4.0.0</modelVersion> <groupId>TelegramBOT</groupId> <artifactId>TelegramBOT</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <groupId>com.heroku.sdk</groupId> <artifactId>heroku-maven-plugin</artifactId> <version>3.0.2</version> <configuration> <release>13</release> <appName>TelegramBOT</appName> <processTypes> <web>java $JAVA_OPTS -cp target/classes:target/dependency/* Main</web> </processTypes> </configuration> </plugin> </plugins> </build> <dependencies> <!-- https://mvnrepository.com/artifact/org.telegram/telegrambots --> <dependency> <groupId>org.telegram</groupId> <artifactId>telegrambots</artifactId> <version>4.9</version> </dependency> </dependencies> </project>…

VIEW QUESTION

Why cannot I receive any POST request on my Telegram bot written with Flask (Python)? – Telegram API

I don't want to use getUpdates method to retrieve updates from Telegram, but a webhook instead. Error from getWebhookInfo is: has_custom_certificate: false, pending_update_count: 20, last_error_date: 1591888018, last_error_message: "SSL error {error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed}" My code is: from flask import Flask…

VIEW QUESTION
Back To Top
Search