@@ -13,8 +13,8 @@ class TextEdit : private Message {
1313
1414 public:
1515 TextEdit () {}
16- TextEdit (const String& text, uint32_t messageID, const Value& chatID) : messageID(messageID) {
17- this ->text = text ;
16+ TextEdit (Text text, uint32_t messageID, Value chatID) : messageID(messageID) {
17+ text. toString ( this ->text ) ;
1818 this ->chatID = chatID;
1919 }
2020
@@ -41,10 +41,10 @@ class MenuEdit : private Message {
4141
4242 public:
4343 MenuEdit () {}
44- MenuEdit (uint32_t messageID, const Value& chatID) : messageID(messageID) {
44+ MenuEdit (uint32_t messageID, Value chatID) : messageID(messageID) {
4545 this ->chatID = chatID;
4646 }
47- MenuEdit (uint32_t messageID, const Value& chatID, InlineMenu& menu) : messageID(messageID) {
47+ MenuEdit (uint32_t messageID, Value chatID, InlineMenu& menu) : messageID(messageID) {
4848 this ->chatID = chatID;
4949 setInlineMenu (menu);
5050 }
@@ -69,7 +69,7 @@ class CaptionEdit : private Message {
6969
7070 public:
7171 CaptionEdit () {}
72- CaptionEdit (const String& caption, uint32_t messageID, const Value& chatID) : caption(caption), messageID(messageID) {
72+ CaptionEdit (const String& caption, uint32_t messageID, Value chatID) : caption(caption), messageID(messageID) {
7373 this ->chatID = chatID;
7474 }
7575
@@ -98,7 +98,7 @@ class LocationEdit : private Message {
9898
9999 public:
100100 LocationEdit () {}
101- LocationEdit (float latitude, float longitude, uint32_t messageID, const Value& chatID) : latitude(latitude), longitude(longitude), messageID(messageID) {
101+ LocationEdit (float latitude, float longitude, uint32_t messageID, Value chatID) : latitude(latitude), longitude(longitude), messageID(messageID) {
102102 this ->chatID = chatID;
103103 }
104104
@@ -142,7 +142,7 @@ class LocationStop : private Message {
142142
143143 public:
144144 LocationStop () {}
145- LocationStop (uint32_t messageID, const Value& chatID) : messageID(messageID) {
145+ LocationStop (uint32_t messageID, Value chatID) : messageID(messageID) {
146146 this ->chatID = chatID;
147147 }
148148
0 commit comments