From 129c6d0c2fc11f29d700d64f5dbf1104e146a029 Mon Sep 17 00:00:00 2001 From: Rumen Nikiforov Date: Mon, 15 Jun 2020 11:47:34 +0300 Subject: [PATCH] Update FAQ.md Fixed typo in SpringApplicationRun Fixed inconsistency in sendMessage example Fixed link to my webhook example --- TelegramBots.wiki/FAQ.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TelegramBots.wiki/FAQ.md b/TelegramBots.wiki/FAQ.md index 6de36ec0..5a94cbf4 100644 --- a/TelegramBots.wiki/FAQ.md +++ b/TelegramBots.wiki/FAQ.md @@ -243,16 +243,16 @@ This is just one way, how you can compile it (here with maven). The example belo Please use ```execute()``` instead. Example: ```java -SendMessage sn = new SendMessage(); +SendMessage message = new SendMessage(); //add chat id and text -execute(sn); +execute(message); ``` If you extend ```TelegramLongPollingCommandBot```, then use ```AbsSender.execute()``` instead. ## Is there any example for WebHook? ## -Please see the example Bot for https://telegram.me/SnowcrashBot in the [TelegramBotsExample]() repo and also an [example bot for Sping Boot](https://github.com/UnAfraid/SpringTelegramBot) from [UnAfraid](https://github.com/UnAfraid) [here](https://github.com/UnAfraid/SpringTelegramBot/blob/master/src/main/java/com/github/unafraid/spring/bot/TelegramWebhookBot.java) +Please see the example Bot for https://telegram.me/SnowcrashBot in the [TelegramBotsExample]() repo and also an [example bot for Sping Boot](https://github.com/UnAfraid/SpringTelegramBot) from [UnAfraid](https://github.com/UnAfraid) [here](https://github.com/UnAfraid/SpringTelegramBot/blob/master/src/main/java/com/github/unafraid/spring/bot/TelegramWebHookBot.java) @@ -268,7 +268,7 @@ public class YourApplicationMainClass { //Add this line to initialize bots context ApiContextInitializer.init(); - SpringApplication.run(MusicUploaderApplication.class, args); + SpringApplication.run(YourApplicationMainClass.class, args); } } ```