Closed melissaboiko closed 2 years ago
If the API key is saved in a file with a newline, the sample echo bot will break at runtime.
I think it would be nice to add a bit of robustness by making the example code
import telebot, asyncdispatch, logging, options, std/strutils
…
const API_KEY = strip(slurp("secret.key")))
(or maybe add a convenience strip() directly on newTeleBot*()?)
strip()
newTeleBot*()
If the API key is saved in a file with a newline, the sample echo bot will break at runtime.
I think it would be nice to add a bit of robustness by making the example code
…
(or maybe add a convenience
strip()
directly onnewTeleBot*()
?)