Skip to content
Sending Messages
step 1/5

Reading — step 1 of 5

Read

~1 min readBot Architecture

Sending Messages

The bot's outbound action: send a message back to a channel/DM.

python

Rich messages:

  • Embeds (Discord): title, description, fields, colors.
  • Blocks (Slack): structured layout components.
  • Markdown formatting.
  • Attachments: images, files.
  • Inline keyboard buttons (Telegram, Discord).
python

Buttons / interactive:

  • User clicks → bot receives interaction event.
  • Reply via interaction.respond().
  • Persistent button state in component_id.

Editing:

python

Used for:

  • Live-updating dashboards.
  • Reply confirmations ("Loading..." → result).
  • Polls with running counts.

Deleting:

python

Used for moderation.

Mentions:

  • @user: notifies user.
  • @everyone, @here: notifies many; usually requires perms.
  • @role: notifies role members.

Format varies per platform:

  • Discord: <@user_id>, <#channel_id>, <:emoji_id:>.
  • Slack: <@U123456>, <#C123|name>.
  • Telegram: [name](tg://user?id=123).

Bot identity:

  • Each bot has a user ID + username.
  • Avoid spamming, follow platform rules.
  • Verified badge for official bots.

Discussion

Ask a question, share an insight, or help someone who’s stuck.

Sign in to post a comment or reply.

Loading…