bot_interceptor 0.0.30 copy "bot_interceptor: ^0.0.30" to clipboard
bot_interceptor: ^0.0.30 copied to clipboard

Fighttech Flutter Bot Interceptor

bot_interceptor #

Fighttech Flutter Image Widget

1. Features #

  • ✅ Support Telegram bot
  • ❌ Slack bot restful API

Example #

Dio(BaseOptions(baseUrl: baseUrl))
     ..interceptors.add(LoggerInterceptor())
     ..interceptors.add(
       TelegramInterceptor(
         chatId: <chat_id: int>,
         token: <token: string>,
         projectId: <project_id>,
       ),
     ),
     );
  

2. How to create bot Telegram and use API #

Step 1: Create new bot #

  • Open telegram -> search "BotFather" and enter message: "/newbot"

create_new

Step 2: Enter bot name #

enter_name

Step 3: Enter username #

  • Enter username your bot. It must end in bot. Like this, for example: TetrisBot or tetris_bot.

create_new

Step 4: Start bot #

  • Open your bot

create_new

  • Start bot

create_new

Step 5: Get all bot #

create_new

Step 6: Open bot setting and get API TOKEN #

  • Select your bot and choose API TOKEN
    create_new

Step 7: Add bot to group #

create_new

Step 8: Get group id #

create_new

Step 9: Test send message #

create_new

Curl #

curl --location --request GET 'https://api.telegram.org/bot<API_TOKEN>/sendMessage?chat_id=<GROUP_ID>&text=helloworld'
5
likes
0
pub points
30%
popularity

Publisher

unverified uploader

Fighttech Flutter Bot Interceptor

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dart_telegram_bot, dio, uuid

More

Packages that depend on bot_interceptor