АГ
Size: a a a
АГ
Б
АГ
Б
@bot.callback_query_handler(func=lambda call: True)
def callback(call):
if call.data == 'accept':
bot.restrict_chat_member(call.id, call.from_user.id, can_send_messages=True, can_send_media_messages=True)
АГ
@bot.callback_query_handler(func=lambda call: True)
def callback(call):
if call.data == 'accept':
bot.restrict_chat_member(call.id, call.from_user.id, can_send_messages=True, can_send_media_messages=True)
Б
AttributeError: 'CallbackQuery' object has no attribute 'chat'
АГ
AttributeError: 'CallbackQuery' object has no attribute 'chat'
Б
s
АГ
s
s
call.message.chat
АГ
АГ
call.message.chat
Б
call.message.chat
s
АГ
АГ
s
АГ