Skip to content

Currently Supported Methods

Sauraj edited this page Oct 3, 2022 · 7 revisions

Available Telegram Methods For this bot.

--sendmsg

  • Use this method to send text messages. On success, the sent Message is returned.

uses

tg --sendmsg "CHAT_ID" 

--sendmarkdownv2msg

--editmsg

  • Use this method to edit a existing message sent by the bot.

--editmarkdownv2msg

--replymsg

  • Use this method to reply a message.

--replyfile

  • Use this method to reply a message with file.

--replymsghtml

  • Use this method to reply a message but with html formatting.

--replymsgmarkdown

--delmsg

  • Use this method to delete telegram message.

--sendsticker

  • Use this method to send sticker.

--replysticker

  • Use thid method to reply a message with sticker.

--fwdmsg

  • Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.

--cpmsg

  • 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.

--pinmsg

  • 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.

--unpinmsg

  • Use this method to remove a message from the list of pinned messages in a chat.

--getuserpfp

  • Use this method to get a list of profile pictures for a user.

--downloadfile

  • USe this method to download a file.

--ban

  • Use this method to ban a user.

--unban

  • Use this method to unban a user.

--sendaudiofile

  • 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.

--sendvoicefile

  • 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).
Clone this wiki locally