-
Notifications
You must be signed in to change notification settings - Fork 3
Currently Supported Methods
Sauraj edited this page Oct 3, 2022
·
7 revisions
- Use this method to send text messages. On success, the sent Message is returned.
uses
tg --sendmsg "CHAT_ID"
- Same as
--sendmsg
but works with Telegram Formatting options MarkdownV2 style.
- Use this method to edit a existing message sent by the bot.
- Same as
--editmsg
but works with Telegram Formatting options MarkdownV2 style.
- Use this method to reply a message.
- Use this method to reply a message with file.
- Use this method to reply a message but with
html
formatting.
- Same as
--replymsg
but works with Telegram Formatting options MarkdownV2 style.
- Use this method to delete telegram message.
- Use this method to send sticker.
- Use thid method to reply a message with sticker.
- Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.
- Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
- Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.
- Use this method to remove a message from the list of pinned messages in a chat.
- Use this method to get a list of profile pictures for a user.
- USe this method to download a file.
- Use this method to ban a user.
- Use this method to unban a user.
- Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format.
- Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document).