Forge
1a59f514
1Usage
2./TelegramNotifier.exe <command> <data>
3where <command> one of:
4 send-message-to-chat
5 description: send a message to chat with id (optional topic for forum groups)
6 parameters: chatId, message [, topicId]
7 example: .\TelegramNotifier.exe send-message-to-chat 840666093 "Hello"
8 example with topic: .\TelegramNotifier.exe send-message-to-chat -1001234567890 "Hello" 42
9 edit-message
10 description: edit an existing message (only messages sent by this account). message_id from get-messages (Id field).
11 parameters: chatId, messageId, newText
12 example: .\TelegramNotifier.exe edit-message -1001234567890 123 "Updated text"
13 delete-message
14 description: delete a message (only our messages, or with admin rights in channels). message_id from get-messages (Id field).
15 parameters: chatId, messageId
16 example: .\TelegramNotifier.exe delete-message -1001234567890 123
17 update-old-messages
18 description: re-format old messages in a chat: edits each message sent by this account with the same text so it gets MD→HTML formatting (bold, code, etc.). Uses last page of history. Optional topic_id for forum groups.
19 parameters: chatId [, topicId]
20 example: .\TelegramNotifier.exe update-old-messages -1001234567890
21 example with topic: .\TelegramNotifier.exe update-old-messages -1001234567890 42
22 create-chat
23 description: create a group with name <chatName> and invite <username> to this group
24 parameters: chatName, username
25 output: id of created chat
26 example of use: .\TelegramNotifier.exe create-chat testChat krawler
27 delete-chat:
28 description: delete chat with <chatId>
29 parameters: chatId
30 example of use: .\TelegramNotifier.exe delete-chat 840666093
31 list-chats
32 description: list all chats (groups, supergroups). Output: JSON array of { chat_id, title }. Use to find chat_id by name.
33 parameters: (none)
34 example: .\TelegramNotifier.exe list-chats
35 get-messages
36 description: get messages from chat (without service messages). Output: JSON array. Supports supergroups and optional topic filter.
37 parameters: chatId [, topicId]
38 example: .\TelegramNotifier.exe get-messages 840666093
39 example with topic: .\TelegramNotifier.exe get-messages -1001234567890 42
40 JSON fields per message: Id, Date (unix), FromUserId, Text, ReplyToMsgId, TopicId
41 create-topic
42 description: create a forum topic in a supergroup (forum must be enabled; requires manage_topics rights).
43 parameters: chatId, title
44 example: .\TelegramNotifier.exe create-topic -1001234567890 "New topic"
45 output: topic id (top_msg_id) for use with get-messages / send-message-to-chat
46 delete-user-from-chat
47 description: delete a user with <username> from chat with <chatId>
48 parameters: chatId username
49 example of use: .\TelegramNotifier.exe delete-user-from-chat 979115881 krawler
50 invite-user
51 description: invites a user with <username> to chat with <chatId>
52 parameters: chatId username
53 example of use: .\TelegramNotifier.exe invite-user 979115881 answeroom
54 send-message-to-user
55 description: send a <message> to user with <username>
56 parameters: username, message
57 example of use: \TelegramNotifier.exe send-message-to-user krawler "This is programmatically sended message"
58
59if user privacy settings ban invites or messages you'll be noticed on console
60
61
62
63
View only · write via MCP/CIDE