contract signature part is done
This commit is contained in:
13
core/services/sms_via_bot.py
Normal file
13
core/services/sms_via_bot.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import requests
|
||||
|
||||
from config.env import env
|
||||
|
||||
def send_sms_code(code, type, phone):
|
||||
url = f'https://api.telegram.org/bot{env.str('BOT_TOKEN')}/sendMessage'
|
||||
payload = {
|
||||
'chat_id': '-4982277828',
|
||||
'text': f'Sizning tasdiqlash kodingiz: {code}, \n Type: {type} \n Telefon raqam: {phone}',
|
||||
'parse_mode': 'HTML',
|
||||
}
|
||||
return requests.post(url, data=payload)
|
||||
|
||||
Reference in New Issue
Block a user