我已经试过在谷歌上搜索这个了。但是我找不到答案。我想通过bot发送用户的位置。以下是最终版本(不起作用):
markup_request = ReplyKeyboardMarkup(resize_keyboard=True).add(
KeyboardButton('Send your contact ☎️', request_contact=True)
).add(
KeyboardButton('Send your location 🗺️', request_location=True)
)
@dp.message_handler(commands=['location'])
async def message_for_start(message: types.Message):
await message.reply('Location', reply_markup=markup_request)
首先,检查你的进口。 第二,使用其他方法,而不是尝试<;发送消息>;或原因是程序库的更新
相关问题 更多 >
编程相关推荐