Похожие чаты

Correct. Another goal of mine is to make the package more

handy, but Telegram API's structure makes things a little complicated.
For example there are 4 requests for different message modifications:
editMessageText
editMessageCaption
editMessageMedia
editMessageReplyMarkup
So users have to initiate a new request each time, like:
bot.EditMessageText()
bot.EditMessageCaption()
...

I was thinking to implement wrappers for related requests, in this case an EditMessage() struct will have EditText()
EditCaption()
...
But I doubt this might complicate things, what do you think?

2 ответов

3 просмотра

well you will offer a more functional version then, but that's more the same, basically you can do: object.method(3, 5) or you can do method(object, 3, 5)

this with templates will be better and easier

Похожие вопросы

Обсуждают сегодня

Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
36
Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
комрады, че-та лыжы не едут var tmpFont: TFont; begin tmpFont:= TFont.Create; try case rgFontColor.ItemIndex of 0: tmpFont.Color:= clWindowText; 1: tmpFo...
Ed Doc
34
VIP-310 Set RedStone as the MAIN oracle for BTC and BNB on BNB Chain Summary If passed, this VIP will perform the following actions: - Configure RedStone as the MAIN oracle...
Venus Announcements
1
М-да. Почему бы просто со stringlist не работать?
Michael Longneck
18
Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
monero is the only tool for privacy and currency . why would we destroy it?
😎
13
🔍 Launch of Sentinel dVPN's Native Explorer 🎉 The Sentinel Growth DAO is thrilled to announce the launch of Sentinel dVPN's new native blockchain explorer! Now anyone can div...
Joey | BadgerBite Joeyy
1
Можно вообще написать: Person fName' lName' age'. Тогда действительно имена полей потребуются лишь в строковом виде, чтобы эти fName' и т.д. достать :-) Но разве для этого нуж...
Михаил
8
Whoa, did you guys see this FUNToken Seed Grant announcement? 💸
Noah Noure
37
Карта сайта