简体   繁体   English

如何穿越时空? 电报机器人

[英]How to kick through time? Telegram Bot

I am creating a bot for a VIP channel, and I have a question.我正在为 VIP 频道创建一个机器人,我有一个问题。 How can I implement a kick through time?我怎样才能实现穿越时间?

The bot has subscriptions for 1, 3, 12 months, how can I make the user get kicked from the group in a month?该机器人有 1、3、12 个月的订阅,我怎样才能让用户在一个月内被踢出群组?

Make a database with users, their subscription plans, when they subscribed.在用户订阅时创建一个包含用户及其订阅计划的数据库。 Then loop trough the database every day and if (current_date > (when_they_subsribed + their_subscription_plan)): kick(user) .然后每天循环遍历数据库if (current_date > (when_they_subsribed + their_subscription_plan)): kick(user) If you need any help in coding that then write to me on discord. RobertK#6151如果您在编码方面需要任何帮助,请致电 discord 给我写信。RobertK#6151

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM