cp .env.example .env
telegram_token=telegram_bot_token
MYSQL_DATABASE=bot_database
MYSQL_USER=username
MYSQL_PASSWORD=password
getUpdates()
# updates db with latest chats & users
METHOD: POST
URI: /
FORM-DATA:
action
:getUpdates
RESPONSE:
{
"message": "Successefully updated"
}
sendMessageToAll()
# sends message to all users of bot
METHOD: POST
URI: /
FORM-DATA:
action
:sendMessageToAll
message
:Message to be sent
RESPONSE:
{
"message": "Successefully sent"
}
sendMessageToUsername()
# sends message by username
METHOD: POST
URI: /
FORM-DATA:
action
:sendMessageToUsername
username
:username
message
:Message to be sent
RESPONSE:
{
"message": "sucess"
}