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

Changed Group Numbers #1

Open
maex3000 opened this issue Apr 13, 2016 · 5 comments
Open

Changed Group Numbers #1

maex3000 opened this issue Apr 13, 2016 · 5 comments
Assignees

Comments

@maex3000
Copy link

Hi,

I'm experiencing something strange in your telegram tool at the moment. Messages are sent to the wrong groups. I requested the current group list with -c and realized that the group numbers changed. Does anybody have an idea how this could happen?

Is there a possibility to avoid this in the future? I'm asking myself if it was possible to replace the group number by the group name so that the messages always are directed right. I'm using windows batch files to send fixed messages to certain groups.

Regards
Maex

@Walkman100
Copy link

Were the groups upgraded to supergroups? I believe they get a new number when they are upgraded, and that's unavoidable but once off.

@maex3000
Copy link
Author

Thank you for your answer. I didn't upgrade the groups to supergroups. They only have about 20 members.

@jsfdez
Copy link
Owner

jsfdez commented Apr 18, 2016

I will try to add send by group name ASAP.

@jsfdez
Copy link
Owner

jsfdez commented Apr 27, 2016

I updated the code to support sending a message by group name instead of chat id, the available options are:

Usage: ./cmdApp [options] secret_file message...
Telegram-Qt for CommandLine

Options:
  -h, --help                                Displays this help.
  -v, --version                             Displays version information.
  -r, --register <phone_number>             Register a new <phone_number>.
  -l, --list                                Display contact list
  -m, --message <contact_phone_number>      Send a message to a phone number
  -c, --chat-list                           Display chat list
  -g, --group-message-by-id <group_id>      Send a message to a group
  -n, --group-message-by-name <group_name>  Send a message to a group

Arguments:
  secret_file                               Secret file to create/use.
  message...                                Message text to send to a contact

I'm not able to test the code as I'm not using Telegram right now, but I think it will work without any problem :)

Thank you for reporting.

@jsfdez jsfdez self-assigned this Apr 29, 2016
@jsfdez
Copy link
Owner

jsfdez commented May 18, 2016

@maex3000 Did you checked the new version?

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

3 participants