Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md Update #63

Merged
merged 6 commits into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# Created by .ignore support plugin (hsz.mobi)
.idea
!/temp.py
.vscode
test.py

__pycache__/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ To see how the tool works,
x = telegram.Notifier('bot API token') #create object of class Notifier
x.send_message('message') #send message
x.send_image("image address") #send image(.jpg or .png format)
x.send_document("file address") #send document
x.send_file("file address") #send document
x.session_dump() #creates folder named 'downloads' in local folder, downloads/saves message,chat details for current session in 'sessio_dump.json' file
```
3. Run sample code.
Expand Down
3 changes: 1 addition & 2 deletions temp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import tensorflow as tf

ssl._create_default_https_context = ssl._create_unverified_context
token = 'https://discord.com/api/webhooks/771253998313144321/5FNBsAi8-exyc-3rx' \
'LOYudQdQqMdpcaCOqCh6z1IX4ledG1oGyaONeIY1HDUns6qBZhW'
token = 'https://discord.com/api/webhooks/885143691201773578/dJgoeeuYqhhCoBNC5nX5ZMBAlx05hKkXVAgSWrSUk-rPc-c7P4n0DL98yGdHwHbERnj4'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace it with token = {DISCORD_TOKEN}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like with which token 🤔.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just replace line 6 with below
token = {DISCORD_TOKEN}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am asking what is DISCORD_TOKEN and form where I can find it?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a webhook from discord and I don't wanna expose my tokens anymore so I'm storing the token in the Github secrets

notifier = tf_notifier.TfNotifier(token=token, platform='discord')


Expand Down