我想创建一个在频道/群组上发布消息的机器人,用户发送群组地址,例如:@group_name,我需要获取我使用远程机器人库的 ID、标题
@bot.message_handler(commands=['addgroup'])
def add_group(message):
msg = bot.send_message(message.chat.id, 'Send group link without @')
bot.register_next_step_handler(msg, add)
def add(message):
url = "telegram.me/" + message.text
keyboard = types.InlineKeyboardMarkup()
keyboard.add(types.InlineKeyboardButton("##HERE I NEED GROUP NAME##", url=url))
msg = bot.send_message(message.chat.id, "Add this group?", reply_markup=keyboard)
bot.register_next_step_handler(msg, check_group)
....
我怎样才能得到这些信息?