Last active
February 8, 2023 07:41
-
-
Save cissav/6b72d5ad681c3ff251a9e4ec998c74ee to your computer and use it in GitHub Desktop.
URL и кастомным запросом для Telegram вебхука
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Ссылка для получения ID: | |
https://api.telegram.org/bot[токен_бота]/getUpdates | |
2) URL: | |
https://api.telegram.org/bot[токен_бота]/sendMessage | |
3) Кастомный запрос: | |
{ | |
"chat_id": [полученный_id], | |
"parse_mode": "Markdown", | |
"text": "*#[case_number]: [case_subject]*\n[user_full_name]: [user_email]\n\n[last_message]\n\n[ответить на обращение]([case_url])", | |
"disable_web_page_preview": "True" | |
} | |
P.S. Менять нужно только [токен_бота] и [полученный_id]. Остальные переменные трогать не нужно. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment