-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command Line Argument - CLI issue #48
Comments
Yep, this is because you try to send message, before contacts were loaded. You have two options: use "msg user# ..." instead (it will work only if you are this user's contact) or you can use binlog ([-B] key). |
Hi Vysheng, Thanks for the reply. Yes, the contact is in my contact. So itred the below and its not working msg 965XXXXXXXX hello | ./telegram All of them giving the same error. "Bad user/chat id" Thanks,
|
You can see user_id this way: in tg use command contact_list. There would be lines like this: User #271912: X Y (X_Y 7901...) offline. Was online [2013/11/20 17:26:37] #271912 in this case is user_id. So you should send msg by command "msg user#271912 text" |
Hi Vysheng,, Yep. That did the Job, Thanks for the explanation. |
Welcome. |
For this: msg Telegram_Notifications hello | ./telegram It gives me: "command not found". Like if it can't load the contacts in time...any solution? |
msg Telegram_Notifications hello | ./bin/telegram-cli -k server.pub -e |
|
@cryptid11 |
Oh, and ./telegram is very old binary. New binary is bin/telegram-cli |
all 2 ways from @stillru doesn't works for me. here options: seems that the -e option doesn't works...what's wrong @vysheng ? When I run:
It tells me:
|
Try UPD my bad. |
Still doesn't works but only because @vysheng change the name "Telegram_Notifications" to "Telegram", and then forgot it. Infact, this command works:
Excuse @vysheng I can't resist to kid you a little 👶 Please try your commands before posting! 🌴 |
Hi,
From command line, The messages are not going. Interactive is working fine.
echo "msg Jobin_J hello" |./telegram -k tg.pub
Telegram-client version 0.01-beta, Copyright (C) 2013 Vitaly Valtman
Telegram-client comes with ABSOLUTELY NO WARRANTY; for details type
show_license'. This is free software, and you are welcome to redistribute it under certain conditions; type
show_license' for details.The text was updated successfully, but these errors were encountered: