appleboy/telegram-action

missing telegram token or user list

sa-esmaili opened this issue · 9 comments

I'm getting this error and action fails:
missing telegram token or user list

Here is my yml file:

name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Telegram Notify
        uses: appleboy/telegram-action@0.0.3
        with:
          to: ${{ secrets.TELEGRAM_CHAT_ID }}
          token: ${{ secrets.TELEGRAM_TOKEN }}
          message: |
            An event occured in ${{ github.repository	 }} repository.
            ${{ github.event_name }}

I quite new in Github Actions. What should I do to fix this?
P.S: I've added telegram_token and telegram_chat_id to secrets section of repo.

I am getting the same error.

Any solution for this ?

any solution?

Find solution! Add uses: appleboy/telegram-action@master instead uses: appleboy/telegram-action@0.0.3

Kindly update this in documentation.

I get "missing telegram token or user list" with @master and @v0.1.1

MoOx commented

You need to configure secrets in https://github.com/YOUR/REPO/settings/secrets/actions. Under Repository secrets, not Environment secrets.

@MoOx thx, it helped. i fixed this problem

Just in case, who got error "missing telegram token or user list" on "appleboy/telegram-action@master" when using reusability workflow (or workflow_call), maybe this can help https://stackoverflow.com/a/75552234/16360035