This commit is contained in:
dsyoon
2023-12-12 09:52:17 +09:00
parent 7e49002cc0
commit 096d3cac0c

View File

@@ -37,7 +37,7 @@ class TelegramBot:
@staticmethod @staticmethod
def send(text): def send(text):
client = telegram.Bot(token="6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM") client = telegram.Bot(token="6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw")
if platform.system().lower() == 'windows': if platform.system().lower() == 'windows':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(client.send_message(chat_id='574661323', text=text)) asyncio.run(client.send_message(chat_id='574661323', text=text))