mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
15 lines
381 B
Python
15 lines
381 B
Python
|
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)
|