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

Replace telegra.ph with te.legra.ph #319

Closed
wants to merge 4 commits into from
Closed

Replace telegra.ph with te.legra.ph #319

wants to merge 4 commits into from

Conversation

SpEcHiDe
Copy link
Contributor

@SpEcHiDe SpEcHiDe commented Oct 1, 2022

Fixes #315

@jigarvarma2k20
Copy link
Contributor

Create telegraph client once when start use many times, possible na?

Comment on lines +74 to +87
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
)
Copy link
Collaborator

@Harsh-br0 Harsh-br0 Oct 1, 2022

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

Copy link
Contributor Author

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 😅

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 guess better solution would be someone experienced with mongoDB could PR .

@SpEcHiDe SpEcHiDe closed this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alternative for telegra.ph
3 participants