Skip to content

Commit 535098e

Browse files
committed
Changed function name
1 parent 2f51e2e commit 535098e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/ESP8266/ChatAction/ChatAction.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ void handleNewMessages(int numNewMessages) {
3535
if (from_name == "") from_name = "Guest";
3636

3737
if (text == "/send_test_action") {
38-
bot.sendChatActionMessage(chat_id, "typing");
38+
bot.sendChatAction(chat_id, "typing");
39+
delay(4000);
40+
bot.sendMessage(chat_id, "Did you saw action message?");
3941

4042
// You can't use own message, just choose from one of bellow
4143

src/UniversalTelegramBot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ bool UniversalTelegramBot::checkForOkResponse(String response) {
551551
return false;
552552
}
553553

554-
bool UniversalTelegramBot::sendChatActionMessage(String chat_id, String text) {
554+
bool UniversalTelegramBot::sendChatAction(String chat_id, String text) {
555555

556556
bool sent = false;
557557
if (_debug) Serial.println("SEND Chat Action Message");

src/UniversalTelegramBot.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class UniversalTelegramBot
6464
bool oneTime = false, bool selective = false);
6565
bool sendMessageWithInlineKeyboard(String chat_id, String text,
6666
String parse_mode, String keyboard);
67-
bool sendChatActionMessage(String chat_id, String text);
67+
68+
bool sendChatAction(String chat_id, String text);
6869

6970
bool sendPostMessage(JsonObject& payload);
7071
String sendPostPhoto(JsonObject& payload);

0 commit comments

Comments
 (0)