-
Notifications
You must be signed in to change notification settings - Fork 326
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
Replace telegra.ph with te.legra.ph #319
Conversation
Create telegraph client once when start use many times, possible na? |
at = None | ||
if TE_LEGRA_PH_ACCESS_TOKEN != 0: | ||
at = ( | ||
await message.client.get_messages( | ||
config.LOG_CHANNEL_ID, | ||
TE_LEGRA_PH_ACCESS_TOKEN | ||
) | ||
).text | ||
else: | ||
at = await pool.run_in_thread(create_access_token)(header) | ||
await message.client.send_message( | ||
config.LOG_CHANNEL_ID, | ||
at | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems spammy cuz it will send a token on each paste
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after receiving once, we can update env var 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess better solution would be someone experienced with mongoDB could PR .
Fixes #315