Comments (13)
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).
from tg.
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
msg +965XXXXXXXX hello | ./telegram
msg 00965XXXXXXXX hello | ./telegram
All of them giving the same error. "Bad user/chat id"
Thanks,
- Jobin
from tg.
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"
from tg.
Hi Vysheng,,
Yep. That did the Job, Thanks for the explanation.
from tg.
Welcome.
from tg.
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?
from tg.
msg Telegram_Notifications hello | ./bin/telegram-cli -k server.pub -e
from tg.
./bin/telegram-cli -k server.pub -e msg Telegram_Notifications hello
Read about -e key
from tg.
@cryptid11
Probably you want to use '-W' key or enable binlog
Also it may be useful to use '-R'
from tg.
Oh, and ./telegram is very old binary. New binary is bin/telegram-cli
from tg.
all 2 ways from @stillru doesn't works for me.
here options:
telegram-cli Usage
-u specify username (would not be asked during authorization)
-k specify location of public key (possible multiple entries)
-v increase verbosity (0-ERROR 1-WARNIN 2-NOTICE 3+-DEBUG-levels)
-N message num mode
-c config file name
-p use specified profile
-l log level
-f during authorization fetch all messages since registration
-E disable auto accept of encrypted chats
-s lua script file
-W send dialog_list query and wait for answer before reading input
-C disable color output
-R disable readline
-d daemon mode
-L log file name
-U change uid after start
-G change gid after start
-D disable output
-P port to listen for input commands
-S unix socket to create
-e make commands end exit
-I use user and chat IDs in updates instead of names
seems that the -e option doesn't works...what's wrong @vysheng ?
When I run:
./bin/telegram-cli -k server.pub -e msg Telegram_Notifications hello
It tells me:
I: config dir=[/home/cryptid11/.telegram-cli]
All done. Exit
halt
from tg.
Try ./bin/telegram-cli -k server.pub -WR -e msg Telegram_Notifications hello
UPD my bad. ./bin/telegram-cli -k server.pub -WR -e "msg Telegram_Notifications hello"
from tg.
Still doesn't works but only because @vysheng change the name "Telegram_Notifications" to "Telegram", and then forgot it.
Infact, this command works:
./bin/telegram-cli -k server.pub -WR -e "msg Telegram hello"
Excuse @vysheng I can't resist to kid you a little 👶
Please try your commands before posting! 🌴
from tg.
Related Issues (20)
- Vysheng/tg
- make error, some lua function has implicit declaration
- <!-- Thanks for reporting issues of Telegram Messenger for iOS!
- libpython-dev HOT 1
- Tt
- savk71m
- Md jasim
- Jasim74927492@gmail
- Juthi
- 2527
- اياتي HOT 2
- raspbian make
- termination_signal_handler in make HOT 2
- g
- Z
- "Make" fails on Ubuntu 20.04 HOT 3
- _Originally posted by @dhmii50 in https://github.com/vysheng/tg/issues/1787_
- Outdated api HOT 3
- https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=18fbca16-2224-45f6-85b0-f7bf2b39b3f3&scope=openid%20profile%20email%20offline_access&redirect_uri=https%3A%2F%2Flearn.microsoft.com%2F_themes%2Fdocs.theme%2Fmaster%2Fen-us%2F_themes%2Fglobal%2Fidentity-redirect.html&client-request-id=4ef28716-2289-4678-b97c-5341608f9a67&response_mode=fragment&response_type=code&x-client-SKU=msal.js.browser&x-client-VER=2.32.2&client_info=1&code_challenge=w9C_Mt8dXNYgvyrOigoR3xqe61-maIvYvayx7QA--6U&code_challenge_method=S256&prompt=select_account&nonce=f43388c9-9be2-48a9-9718-8e7cdabaae2f&state=eyJpZCI6ImM5ZGI0MzRmLTIyNTYtNDY5OC04OWI0LTE0ZGRkMDgyZTM0MyIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0%3D%7Chttps%253A%252F%252Flearn.microsoft.com%252Fru-ru%252Ftraining%252Fbrowse%252F%253Fsource%253Dlearn
- I encountered several problems when using telegram-cli for the first time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tg.