botman / docs

BotMan documentation
33 stars 53 forks source link

Update installation.md #56

Closed decadence closed 6 years ago

decadence commented 6 years ago

I had trouble with BotMan + Telegram for 1.5 hour because I misunderstood that we need to pass key => array for each driver and not directly Telegram token to config array. So I propose to include that in example. Maybe worth noting that config array can have many drivers settings. BotMan silently fails in reply method if it can't find token in Telegram driver. I think it would be better to throw some Exception because it doesn't make sense to work without token. I needed to go to source code and found out that API URL is incorrectly formed because BotMan did not get my token and it said nothing about it which is incredibly wrong.