Android Question Sending message to specific Telegram user/group without BOT?

hazaal

Member
Licensed User
Longtime User
Hi all,

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



Can someone please help me?

Br,
-Harri
 
Top