0.0.10
This commit is contained in:
14
tgbot/handlers/command_ask.py
Normal file
14
tgbot/handlers/command_ask.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from tgbot.storage import Profile
|
||||
from tgbot.handlers.send_button import show_request_msg
|
||||
from tgbot.api import get_member
|
||||
|
||||
def handle_command_ask(msg):
|
||||
print(f'handling request resend')
|
||||
cmd, chat_id, member_id = msg['text'].split(' ')
|
||||
chat_id = chat_id.replace('-', '-100')
|
||||
r = get_member(chat_id, member_id)
|
||||
print(r)
|
||||
m = {}
|
||||
m['from'] = r['result']['user']
|
||||
m['chat'] = { 'id': chat_id }
|
||||
show_request_msg(m)
|
Reference in New Issue
Block a user