Methods

Available methods

You can directly use the methods here in the TLObject or Snake derived classes.

const client = new Snake();
client.api; //.<method_name>
// or
bot.on('message.text', (update) => {
  update.api; //.<method_name>
});

Invoking raw api

import { Raw } from 'tgsnake';
client.api.invoke(new Raw.messages.SendMessage({}));

For a list of Raw Api, you can find it in TL Documentantion and as a supporter, you can read more in the official telegram documentation.