Skip to content
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

Send messages to users/groups/channels without configuration #102

Open
SHU-red opened this issue Apr 17, 2022 · 1 comment
Open

Send messages to users/groups/channels without configuration #102

SHU-red opened this issue Apr 17, 2022 · 1 comment

Comments

@SHU-red
Copy link

SHU-red commented Apr 17, 2022

Maybe i did not see this but is there a way to individually specify for each new command a different receiver?
I created a bot and everything is working fine by sending eacht message into one and the same group.
But is there a way to configurate api-key, target user/group/channel just within one command?

e.g. to myself
telegram-send -token 39430958350285 -u Myusername "This message"

e.g. to group
telegram-send -token 39430958350285 -g -121541(groupid) "This message"

I think at the moment everything is aligned to be based on a separate config
And (im not sure but i think) there is no option to send to a specific user by using a bot? only channel or group or myself?

@rahiel
Copy link
Owner

rahiel commented Oct 7, 2023

You can send to different targets by using different config files, see for example https://github.com/rahiel/telegram-send#how-to-send-the-same-message-to-multiple-users

Maybe i did not see this but is there a way to individually specify for each new command a different receiver?

you then use telegram-send with different config files so for example

telegram-send --config user1.conf "hello to user"
telegram-send --config group1.conf "hello to group1"
telegram-send --config group2.conf "hello to group2"

And (im not sure but i think) there is no option to send to a specific user by using a bot? only channel or group or myself?

You have to then setup telegram-send for that specific user, you can't simply target a new user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants