|
|
|
@ -104,6 +104,14 @@ void Telegram::TelegramBot::sendMessage(std::string message, std::string chat_id
|
|
|
|
|
this->apiRequestJson("sendMessage", params); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sends a picture from the internet to a chat |
|
|
|
|
*/ |
|
|
|
|
void Telegram::TelegramBot::sendPhoto(std::string URL, Json::Int64 chat_id) { |
|
|
|
|
|
|
|
|
|
this->sendPhoto(URL, SSTR(chat_id)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sends a picture from the internet to a chat |
|
|
|
|
*/ |
|
|
|
|