【发布时间】:2018-08-03 08:13:45
【问题描述】:
我的代码:
import telebot
bot = telebot.TeleBot(constants.token)
@bot.message_handler(commands=['roll'])
def handle_command(message):
roll = random.randint(1, 100)
bot.send_message(message.chat.id, roll)
bot.getChatMembersCount()
bot.polling(none_stop=True, interval=0)
错误:
AttributeError: 'TeleBot' 对象没有属性 'getChatMembersCount'
如何使用'getChatMembersCount'?
【问题讨论】:
标签: python bots telegram-bot py-telegram-bot-api