rubenlagus / TelegramBotsExample

A simple to use library to create Telegram Bots in Java
GNU General Public License v3.0
484 stars 229 forks source link

BuildVars - explanation #18

Closed Clevero closed 8 years ago

Clevero commented 8 years ago

Try to start a simple Echo Bot.

But I have some problems with settings in BuildVars.java

For what is EXTERNALWEBHOOKURL and INTERNALWEBHOOKURL?

Can those be set to my domain/ip of my server?

rubenlagus commented 8 years ago

Those two fields are used only in case you want to use a Webook bot.

  1. EXTERNALWEBHOOKURL: Is the external address of your server, like _https://mydomain.com
  2. INTERNALWEBHOOKURL: Is the url where the rest client will be listening to (added to support inverse proxies), for example http:127.0.0.1

Remember that webhook bots requires that the server have a valid ssl certificate (self-signed or not) in order to work correctly and that the CN of the certificate must exactly match your domain.

Clevero commented 8 years ago

thanks! :+1: