Hi all,
I am using this code to send some pretty much preset messages via telegram
Now users would like have user/group also preset, so that their don't have to select is separately.
It's important to know who is the sender, so rather not use the BOT's
I found some java code, but I cannot figure out how to do it in B4A
Can someone please help me?
Br,
-Harri
I am using this code to send some pretty much preset messages via telegram
B4X:
Public Sub SendMsg(tmsg As String)
Dim i As Intent
i.Initialize(i.ACTION_SEND, "")
i.SetType("text/plain")
i.setPackage(telegram_package)
i.PutExtra("android.intent.extra.TEXT", tmsg)
StartActivity(i)
End Sub
Now users would like have user/group also preset, so that their don't have to select is separately.
It's important to know who is the sender, so rather not use the BOT's
I found some java code, but I cannot figure out how to do it in B4A
Android - Send Telegram message to a specific number
I'm trying to send a Telegram message to a specific number from within my Android app. Right now my code launches Telegram app, and then the user has to select the destinatary. What I want to do is...
stackoverflow.com
Can someone please help me?
Br,
-Harri