B4J Question you can add other methods to jtlegram library

Yoldi

Member
Greetings.

it would be possible to add some other functionality to the jtelegrambot library. the work would be paid (if the project supports it)

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
You need to be more precise.
What "other functionality" you are talking about?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
1 - Location sent.
B4X:
sendLocation(ChatIdentifier targetChatIdentifier, float latitude, float longitude, Boolean silentMessage,
                         Integer replyToMessageId, ReplyMarkup replyMarkup)
2- Photo sent.
B4X:
sendPhoto(ChatIdentifier targetChatIdentifier, MediaIdentifier mediaIdentifier, String photoCaption,
                      Boolean silentMessage, Integer replyToMessageId, ReplyMarkup replyMarkup)
3- Voice sent.
B4X:
sendAudio(ChatIdentifier targetChatIdentifier, MediaIdentifier mediaIdentifier, Integer duration,
                      String performer, String trackTitle, Boolean silentMessage, Integer replyToMessageId,
                      ReplyMarkup replyMarkup)
and
B4X:
sendVoice(ChatIdentifier targetChatIdentifier, MediaIdentifier mediaIdentifier, Integer duration, Boolean silentMessage,
                      Integer replyToMessageId, ReplyMarkup replyMarkup)
4-Contact sent.
B4X:
sendContact(ChatIdentifier targetChatIdentifier, String phoneNumber, String firstName,
                        String lastName, Boolean silentMessage, Integer replyToMessageId,
                        ReplyMarkup replyMarkup)

ALL Methods ARE available!
 
Upvote 0

Yoldi

Member
the error is nullpointer esception.
Regardless of this I want to save the data in a database and I cannot do it. Do you have an example of how to do it for what I ask? thanks
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Regardless of this I want to save the data in a database and I cannot do it.
you need to extract all relevant Data from the message and its "sub"-Properties to save it. You probably can not store a message object directly in the DB.
Do you have an example of how to do it for what I ask?
No. As written it is something you need to build by yourself.
 
Upvote 0

Yoldi

Member
Thank you
for your answer I am already solving the problems.

I am also interested if it is possible that the library option requires you to do surveys (what is the cost of including this option).
If you can't, could you recommend someone?

sorry for the inconvenience
 
Upvote 0
Top