Skip to content

How do I set chat ephemeral duration? #2654

Answered by smashah
smashah asked this question in Q&A
Discussion options

You must be logged in to vote

With the latest version you can use the following code to set the ephemeral duration:

//1 day
await client.setChatEphemeral(chatId, 86400)
//7 days
await client.setChatEphemeral(chatId, 604800)
//90 days
await client.setChatEphemeral(chatId, 7776000)

Replies: 3 comments

Comment options

smashah
Apr 12, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

smashah
Apr 12, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

smashah
Apr 12, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by smashah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PRIORITY Fast track for BMAC Members only.
1 participant
Converted from issue

This discussion was converted from issue #2653 on April 12, 2022 05:17.