/SadFavBot

Favorites bot for Telegram

Primary LanguageGoMIT LicenseMIT

@SadFavBot — SadBot's Favorites Bot

CI Build Wiki Docs

Your lovely pocket for storing stickers, pictures, GIFs, voices, etc. It lets you save your favorite memes and keep them for further use via inline mode.

Save your favs:

image

And use them later!

image

Commands

  • /help — prints help message
  • /save — starts a wizard that helps you store a meme associated with some textual alias
  • /link — starts a wizard that helps you link another phrase to the already existing alias
  • /rmlink — starts a wizard that helps you remove the link created by the previous command
  • /list — prints all saved aliases or packages
  • /ref — prints the list of all aliases associated with an object
  • /delete — starts a wizard that helps you delete some memes you no longer needed
  • /visibility — exclude an alias from all listings, or reveal it back
  • /package — starts a wizard that helps you create or delete your own package of aliases, which may be installed by other users
  • /install — command to install a package of aliases created by someone else
  • /language — switch the bot's language
  • /mode — enable or disable substring search
  • /cancel — aborts the current wizard

Inline mode

Just write one of your saved aliases and get the stored memes!

How packages work?

The package is a set of aliases associated with the owner of the package. The package contains only aliases, not objects associated with them! Therefore, the list of installing objects is formed only at installation time. The package is a reference to specific aliases of the user. However, the installation is just a bunch of /save actions (a bunch of inserts to the database actually), so the installed aliases are completely independent and separated between users.