victorious-dawn-38776
08/10/2023, 6:23 AMhttps://cdn.discordapp.com/attachments/1139081666862788658/1139099857957691452/image.png▾
victorious-dawn-38776
08/10/2023, 7:36 AMvictorious-dawn-38776
08/10/2023, 8:22 AMhttps://api.telegram.org/bot<(MyAPI)>/getChatMember?chat_id=${channel}&user_id=${telegramId}
const response = await axios.get(subscriptionUrl)
const status = _.get(response, 'data.result.status', null)
return status === 'member' || status === 'creator'
}victorious-dawn-38776
08/10/2023, 2:02 PMhttps://cdn.discordapp.com/attachments/1139081666862788658/1139197180704473249/image.png▾
victorious-dawn-38776
08/10/2023, 2:15 PMhttps://api.telegram.org/bot${bot.telegramToken}/getChatMember?chat_id=${channel}&user_id=${telegramId}
const response = await axios.get(url)
const status = _.get(response, 'data.result.status')
return status === 'member' || status === 'creator'
}crooked-van-25152
08/10/2023, 2:16 PMvictorious-dawn-38776
08/10/2023, 3:36 PMhttps://api.telegram.org/bot${bot.telegramToken}/getChatMember?chat_id=${chatId}&user_id=${telegramId}
const response = await axios.get(url)
const status = _.get(response, 'data.result.status')
return status === 'member' || status === 'creator'
}
https://cdn.discordapp.com/attachments/1139081666862788658/1139220692320133120/image.png▾
https://cdn.discordapp.com/attachments/1139081666862788658/1139220692819263519/image.png▾
victorious-dawn-38776
08/10/2023, 3:36 PMearly-train-33247
08/10/2023, 6:07 PMevent.tags.conversation["telegram:id"]
, this is correctearly-train-33247
08/10/2023, 6:09 PMevent.channel === "telegram"
and goes to a node where you manage Telegram users, and add another expression with the code true
that manages all other cases.billions-yacht-29034
08/11/2023, 5:45 PM