1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-18 05:18:06 +02:00
OpenIntegrations/docs/en/examples/Telegram/CreateInviteLink.txt
2024-08-13 17:25:31 +03:00

11 lines
402 B
Plaintext

Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
Day = 86400;
CurrentDate = OPI_Tools.GetCurrentDate();
Title = "Link " + String(CurrentDate);
Expiration = CurrentDate + Day;
UnixExpiration = OPI_Tools.UNIXTime(Expiration);
Result = OPI_Telegram.CreateInvitationLink(Token, ChannelID, Title, Expiration, 200);