init
This commit is contained in:
@@ -24,9 +24,9 @@ class TelegramBot:
|
||||
username for the bot: ncue_stock_bot
|
||||
token to access the HTTP API: 6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw
|
||||
"""
|
||||
self.botname = "coinbot"
|
||||
self.username = "ncue_coin_bot"
|
||||
self.token = "6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM"
|
||||
self.botname = "stockbot"
|
||||
self.username = "ncue_stock_bot"
|
||||
self.token = "6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw"
|
||||
self.chat_id = '574661323'
|
||||
self.client = telegram.Bot(token=self.token)
|
||||
|
||||
@@ -37,7 +37,7 @@ class TelegramBot:
|
||||
|
||||
@staticmethod
|
||||
def send(text):
|
||||
client = telegram.Bot(token="6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM")
|
||||
client = telegram.Bot(token="6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw")
|
||||
if platform.system().lower() == 'windows':
|
||||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||
asyncio.run(client.send_message(chat_id='574661323', text=text))
|
||||
|
||||
Reference in New Issue
Block a user