Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YajanaRao opened this issue Jul 12, 2020 · 9 comments
Open

Comments

@YajanaRao
Copy link

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

@hkpanchani
Copy link

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

@YajanaRao
Copy link
Author

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 ?

@hkpanchani
Copy link

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`

@SGCEntertainment
Copy link

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

@gumam
Copy link

gumam commented Oct 11, 2022

did not work

@lkant8
Copy link

lkant8 commented Dec 1, 2022

im also facing this issue

@davidC1991
Copy link

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

@markusressel
Copy link

markusressel commented Mar 12, 2023

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

@loderunner84
Copy link

loderunner84 commented Jun 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants