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
 

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
hi
did you manage to resolve this issue?
can you send a text message using telegram directly from phone to a specific person?
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Noup, unfortunately not. If you figure it out, please tell me :)
there a brilliant library written by @Johan Schoeman and placed here including sample project
it worked perfectly
i reads the card and return PAN, Expiry and some other staff
this is great for CNP transactions
it cannot be used foe tap on phone as it can't read Field55 and the encryption
so if you want to just read the card info - that's perfect
for tap on phone you'll need a formal sdk (make sure it is certified in your region)

the problem is that once i updated B4A to ver 13.0 this lib went ballistic with errors in compile time
i did try to approach @Johan Schoeman who during all times was very helpfull and i am waiting for his reply
if he will manage to fix it - hooray!
if not part of my project will also die...
so let's wait for him - he knows what to do with it and i trust that if it is doable he will come for my help

EDIT:
wait!
it is all working fine with @Johan Schoeman lib under b4a 13.0
it was something in the project that was corrupt
sorry
 
Last edited:
Upvote 0
Top