telegram-action icon indicating copy to clipboard operation
telegram-action copied to clipboard

Unable to send apk to telegram group. A text message received instead

Open YajanaRao opened this issue 3 years ago • 9 comments

I have configured to upload apk after build in github actions. I get text instead of file

image

This is what I get image

This is the log

image

YajanaRao avatar Jul 12 '20 18:07 YajanaRao

while sending document you need to send absolute path not relative path document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk

I am saving my apk in github workspace

hkpanchani avatar Jul 31 '20 06:07 hkpanchani

while sending document you need to send absolute path not relative path document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk

I am saving my apk in github workspace

It sends the link to the apk right ?. I was wondering is there a possibility of sending apk file itself ?

YajanaRao avatar Jul 31 '20 07:07 YajanaRao

No it sends the apk itself Let me show you my code

`jobs: build: name: Generate APK runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
  uses: actions/setup-java@v1
  with:
    java-version: 1.8
- name: Build Debug APK
  run: bash ./gradlew :app:assembleDebug

- name: Upload APK
  uses: actions/upload-artifact@v2
  with:
    name: App
    path: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk

- name: send custom message
  uses: appleboy/telegram-action@master
  with:
    to: ${{ secrets.MESSAGEID }}
    token: ${{ secrets.BOTTOKEN }}
    message: |
      Below is the apk for commit: ${{ github.event.head_commit.message }}
    document: ${{ github.workspace }}/app/build/outputs/apk/debug/app-debug.apk`

hkpanchani avatar Jul 31 '20 07:07 hkpanchani

не работает для меня

SGCEntertainment avatar Aug 06 '22 11:08 SGCEntertainment

did not work

gumam avatar Oct 11 '22 11:10 gumam

im also facing this issue

lkant8 avatar Dec 01 '22 17:12 lkant8

i have the same problem. maybe because my apk file is 200 Mb Size, by telegram api documentation , bots just suppot until 50 Mb

davidC1991 avatar Dec 01 '22 18:12 davidC1991

Facing the same issue when using curl to upload an APK, if the file exceeds a certain limit (looks like its 50 MB) the file is not uploaded.

Looks like it is possible to work around this by hosting your own bot api server: https://core.telegram.org/bots/api#using-a-local-bot-api-server

markusressel avatar Mar 12 '23 04:03 markusressel

how do you fill TELEGRAM_TO secret? I've tried set group chat id with "-" and without and no success both

loderunner84 avatar Jun 02 '23 06:06 loderunner84