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.
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 Telegramtoken
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 inreply
method if it can't find token in Telegram driver. I think it would be better to throw someException
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.