diff --git a/chatasthebot.py b/chatasthebot.py new file mode 100644 index 00000000..9e4c2c88 --- /dev/null +++ b/chatasthebot.py @@ -0,0 +1,14 @@ +import telegram +import configparser +config = configparser.ConfigParser() +config.read("config.ini") + + +telegram_bot = telegram.Bot(config["Telegram"]["bot_token"]) + + +while True: + message = input() + telegram_bot.send_message(config["Telegram"]["main_group"], message, + parse_mode="HTML", + disable_web_page_preview=True)