-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d0a957
commit e7e081d
Showing
2 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from tokenfinderbot.tokenfinderbot import TokenBot | ||
|
||
# bot instance | ||
bot = TokenBot() | ||
|
||
# get bot settings | ||
settings = bot.get_settings() | ||
|
||
# change bot telegram settings | ||
settings.telegram.notify = True | ||
settings.telegram.bot_token = "YOUR TELEGRAM BOT TOKEN" # your telegram bot token | ||
settings.telegram.chat_id = "xxxxxxxxxx" # chat id for chat, group or channel which the bot is a memeber of | ||
|
||
# set new settings | ||
bot.set_settings(settings) | ||
|
||
# run with new settings | ||
bot.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters