Skip to content

Commit ff339eb

Browse files
committed
upd
1 parent 4216778 commit ff339eb

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

docs/1.main.md

+3
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ bool isEdited();
315315
// текст сообщения
316316
Text text();
317317

318+
// подпись файла
319+
Text caption();
320+
318321
// id сообщения в этом чате
319322
Text id();
320323

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FastBot2
2-
version=1.0.7
2+
version=1.0.8
33
author=AlexGyver <alex@alexgyver.ru>
44
maintainer=AlexGyver <alex@alexgyver.ru>
55
sentence=Fast and universal Arduino/ESP8266/ESP32 library for Telegram bot

src/core/types/MessageRead.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#include <GSON.h>
44
#include <StringUtils.h>
55

6+
#include "../EntryAccess.h"
7+
#include "../api.h"
68
#include "ChatRead.h"
79
#include "DocumentRead.h"
810
#include "LocationRead.h"
911
#include "MessageOriginRead.h"
1012
#include "UserRead.h"
11-
#include "../EntryAccess.h"
12-
#include "../api.h"
1313

1414
namespace fb {
1515

@@ -24,6 +24,11 @@ struct MessageRead : public EntryAccess {
2424
return entry[tg_apih::text];
2525
}
2626

27+
// подпись файла
28+
Text caption() {
29+
return entry[tg_apih::caption];
30+
}
31+
2732
// id сообщения в этом чате
2833
Text id() {
2934
return entry[tg_apih::message_id];

0 commit comments

Comments
 (0)