Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. ChatGPT Telegram Bot

ChatGPT Telegram Bot

Scheduled Pinned Locked Moved App Wishlist
23 Posts 5 Posters 4.0k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KubernetesK Offline
    KubernetesK Offline
    Kubernetes
    App Dev
    wrote on last edited by Kubernetes
    #3

    My initial package is running fine on my Cloudron. Package Source can be found in Gitlab

    Please be aware of:

    • Currently the Health Check fails
    • Port 8080 is referenced in CloudronManifest - but there is no open port currently
    • You have to configure .env File in /app/data after installation to make it work
    • you must have a openai api key and a telegramm bot token

    Side Note: I use this bot already since a couple of months and it's very stable and functionality is perfect for me. It was just logical to make it available to Cloudron.

    timconsidineT 1 Reply Last reply
    2
    • KubernetesK Kubernetes

      My initial package is running fine on my Cloudron. Package Source can be found in Gitlab

      Please be aware of:

      • Currently the Health Check fails
      • Port 8080 is referenced in CloudronManifest - but there is no open port currently
      • You have to configure .env File in /app/data after installation to make it work
      • you must have a openai api key and a telegramm bot token

      Side Note: I use this bot already since a couple of months and it's very stable and functionality is perfect for me. It was just logical to make it available to Cloudron.

      timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by
      #4

      @Kubernetes great work !
      I'm very interested to try it.

      1 Reply Last reply
      0
      • robiR robi

        Cool, with some of the work I've done making AI models work in LAMP, one doesn't have to use the ChatGPT key, but can run from your own local version.

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #5

        @robi said in ChatGPT Telegram Bot:

        one doesn't have to use the ChatGPT key

        This is interesting. Do you have more info / guidance ?

        1 Reply Last reply
        1
        • KubernetesK Offline
          KubernetesK Offline
          Kubernetes
          App Dev
          wrote on last edited by
          #6

          Healthcheck is working now and proxy auth has been added to avoid strangers browsing to the status page.

          timconsidineT 1 Reply Last reply
          2
          • KubernetesK Kubernetes

            Healthcheck is working now and proxy auth has been added to avoid strangers browsing to the status page.

            timconsidineT Offline
            timconsidineT Offline
            timconsidine
            App Dev
            wrote on last edited by
            #7

            @Kubernetes great work ! thank you

            KubernetesK 1 Reply Last reply
            1
            • timconsidineT timconsidine

              @Kubernetes great work ! thank you

              KubernetesK Offline
              KubernetesK Offline
              Kubernetes
              App Dev
              wrote on last edited by
              #8

              @timconsidine Thank you for the suggestion to implement a "fake" web server ๐Ÿ™‚

              1 Reply Last reply
              2
              • KubernetesK Kubernetes

                A Telegram bot that integrates with OpenAI's official ChatGPT, DALLยทE and Whisper APIs to provide answers. Ready to use with minimal configuration required.

                Features

                • Support markdown in answers
                • Reset conversation with the /reset command
                • Typing indicator while generating a response
                • Access can be restricted by specifying a list of allowed users
                • Docker and Proxy support
                • (NEW!) Image generation using DALLยทE via the /image command
                • (NEW!) Transcribe audio and video messages using Whisper (may require ffmpeg)
                • (NEW!) Automatic conversation summary to avoid excessive token usage
                • (NEW!) Track token usage per user - by @AlexHTW
                • (NEW!) Get personal token usage statistics and cost per day/month via the /stats command - by @AlexHTW
                • (NEW!) User budgets and guest budgets - by @AlexHTW
                • (NEW!) Stream support
                • (NEW!) GPT-4 support
                • (NEW!) Localized bot language
                  Available languages ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿ‡น๐Ÿ‡ท ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡ซ๐Ÿ‡ฎ ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ฎ๐Ÿ‡ฉ ๐Ÿ‡ณ๐Ÿ‡ฑ ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡น๐Ÿ‡ผ ๐Ÿ‡ป๐Ÿ‡ณ ๐Ÿ‡ฎ๐Ÿ‡ท ๐Ÿ‡ง๐Ÿ‡ท ๐Ÿ‡บ๐Ÿ‡ฆ
                • (NEW!) Improved inline queries support for group and private chats - by @bugfloyd
                  To use this feature, enable inline queries for your bot in BotFather via the /setinline command

                Source:
                https://github.com/n3d1117/chatgpt-telegram-bot

                L Offline
                L Offline
                LoudLemur
                wrote on last edited by LoudLemur
                #9

                @Kubernetes said in ChatGPT Telegram Bot:

                A Telegram bot that integrates with OpenAI's official ChatGPT, DALLยทE and Whisper APIs to provide answers. Ready to use with minimal configuration required.

                Features

                • Support markdown in answers
                • Reset conversation with the /reset command
                • Typing indicator while generating a response
                • Access can be restricted by specifying a list of allowed users
                • Docker and Proxy support
                • (NEW!) Image generation using DALLยทE via the /image command
                • (NEW!) Transcribe audio and video messages using Whisper (may require ffmpeg)
                • (NEW!) Automatic conversation summary to avoid excessive token usage
                • (NEW!) Track token usage per user - by @AlexHTW
                • (NEW!) Get personal token usage statistics and cost per day/month via the /stats command - by @AlexHTW
                • (NEW!) User budgets and guest budgets - by @AlexHTW
                • (NEW!) Stream support
                • (NEW!) GPT-4 support
                • (NEW!) Localized bot language
                  Available languages ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿ‡น๐Ÿ‡ท ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡ซ๐Ÿ‡ฎ ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ฎ๐Ÿ‡ฉ ๐Ÿ‡ณ๐Ÿ‡ฑ ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡น๐Ÿ‡ผ ๐Ÿ‡ป๐Ÿ‡ณ ๐Ÿ‡ฎ๐Ÿ‡ท ๐Ÿ‡ง๐Ÿ‡ท ๐Ÿ‡บ๐Ÿ‡ฆ
                • (NEW!) Improved inline queries support for group and private chats - by @bugfloyd
                  To use this feature, enable inline queries for your bot in BotFather via the /setinline command

                Source:
                https://github.com/n3d1117/chatgpt-telegram-bot

                Well done on this!

                brave_5dliCMzVXW.png

                Of these functions, I have benefited from a travel plans update bot. I wonder how people here find these bots useful. Perhaps there are some other categories. For example, full-moon warning bot!

                How readily could we use a bot like this without needing to run Telegram? Maybe we would prefer to run it on e.g. https://getsession.org
                for example.

                Anyway, yet another goal from @Kubernetes!

                1 Reply Last reply
                0
                • robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #10

                  Can someone leave a note on their Github issue to add alternative API for claude.ai? There should already be one asking for such, just not specific enough.

                  Conscious tech

                  KubernetesK 1 Reply Last reply
                  1
                  • robiR robi

                    Can someone leave a note on their Github issue to add alternative API for claude.ai? There should already be one asking for such, just not specific enough.

                    KubernetesK Offline
                    KubernetesK Offline
                    Kubernetes
                    App Dev
                    wrote on last edited by
                    #11

                    @robi Unfortunately Claude.ai is not available outside US and UK.

                    Unfortunately, Claude.ai is only available in the US and UK. We're working hard to expand to other regions soon.

                    robiR 1 Reply Last reply
                    1
                    • KubernetesK Kubernetes

                      @robi Unfortunately Claude.ai is not available outside US and UK.

                      Unfortunately, Claude.ai is only available in the US and UK. We're working hard to expand to other regions soon.

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #12

                      @Kubernetes it is via VPN ;-]

                      Conscious tech

                      L 1 Reply Last reply
                      1
                      • robiR robi

                        @Kubernetes it is via VPN ;-]

                        L Offline
                        L Offline
                        LoudLemur
                        wrote on last edited by
                        #13

                        @robi said in ChatGPT Telegram Bot:

                        @Kubernetes it is via VPN ;-]

                        I thought Claude was geo-locked and that a using a VPN would solve this, however they seem to be able to detect whether one is connecting like this and unless you have skills like robi, they are still able to block you.

                        I think this is a serious problem for society. It is not just Claude doing this either. The Powers That Be, I believe, have some systems in place, like a blacklist or something which they maintain, which establishes which IP addresses are VPNs. This sort of issue happens in other fields too, for example football, where they will let you watch live games online but only if you are not in particular countries.

                        The problem is that the first step is them being able to identify when people are using a VPN. The next step is to ban people from using VPNs. Then comes the persecution.

                        Anyway, I am glad robi managed to do it somehow. I would like to know how too, but don't tell me, or ... they will find out how!

                        timconsidineT 1 Reply Last reply
                        2
                        • L LoudLemur

                          @robi said in ChatGPT Telegram Bot:

                          @Kubernetes it is via VPN ;-]

                          I thought Claude was geo-locked and that a using a VPN would solve this, however they seem to be able to detect whether one is connecting like this and unless you have skills like robi, they are still able to block you.

                          I think this is a serious problem for society. It is not just Claude doing this either. The Powers That Be, I believe, have some systems in place, like a blacklist or something which they maintain, which establishes which IP addresses are VPNs. This sort of issue happens in other fields too, for example football, where they will let you watch live games online but only if you are not in particular countries.

                          The problem is that the first step is them being able to identify when people are using a VPN. The next step is to ban people from using VPNs. Then comes the persecution.

                          Anyway, I am glad robi managed to do it somehow. I would like to know how too, but don't tell me, or ... they will find out how!

                          timconsidineT Offline
                          timconsidineT Offline
                          timconsidine
                          App Dev
                          wrote on last edited by timconsidine
                          #14

                          @LoudLemur said in ChatGPT Telegram Bot:

                          using a VPN would solve this, however they seem to be able to detect whether one is connecting like this

                          I'm no expert but my understanding is that it is relatively easy to detect connection by VPN, if they are so minded to do so, especially if you're using one of the major ones (just IP address ranges).

                          Maybe using your own VPN works better in this case, but it requires having a VPS in the necessary country.

                          Someone more knowledgeable can explain better than that my kludge above.

                          1 Reply Last reply
                          2
                          • timconsidineT Offline
                            timconsidineT Offline
                            timconsidine
                            App Dev
                            wrote on last edited by timconsidine
                            #15

                            Shrinking from the keyboard with embarrassment at having to ask, but .... which telegram account is chatgpt on ?
                            Installed app nicely (๐Ÿ‘ @Kubernetes), added openai and bot keys to .env, restarted app.
                            In telegram I can only see channels for chagpt. But surely I shouldn't be chatting with a channel ?

                            KubernetesK 1 Reply Last reply
                            0
                            • timconsidineT timconsidine

                              Shrinking from the keyboard with embarrassment at having to ask, but .... which telegram account is chatgpt on ?
                              Installed app nicely (๐Ÿ‘ @Kubernetes), added openai and bot keys to .env, restarted app.
                              In telegram I can only see channels for chagpt. But surely I shouldn't be chatting with a channel ?

                              KubernetesK Offline
                              KubernetesK Offline
                              Kubernetes
                              App Dev
                              wrote on last edited by
                              #16

                              @timconsidine you should have given a name to your telegramm bot. just write him, as he is a contact.

                              timconsidineT 1 Reply Last reply
                              1
                              • KubernetesK Kubernetes

                                @timconsidine you should have given a name to your telegramm bot. just write him, as he is a contact.

                                timconsidineT Offline
                                timconsidineT Offline
                                timconsidine
                                App Dev
                                wrote on last edited by timconsidine
                                #17

                                @Kubernetes doh ! I get it now ! ๐Ÿ˜Š
                                I made the mistake of putting my telegram username in the auth ids, but found getids bot and change to userID.
                                Stupidly I thought I would chat with OpenAI, but now I get it : I chat with my bot !
                                Obvious really.
                                Sorry, having a bad day.

                                KubernetesK 1 Reply Last reply
                                1
                                • timconsidineT timconsidine

                                  @Kubernetes doh ! I get it now ! ๐Ÿ˜Š
                                  I made the mistake of putting my telegram username in the auth ids, but found getids bot and change to userID.
                                  Stupidly I thought I would chat with OpenAI, but now I get it : I chat with my bot !
                                  Obvious really.
                                  Sorry, having a bad day.

                                  KubernetesK Offline
                                  KubernetesK Offline
                                  Kubernetes
                                  App Dev
                                  wrote on last edited by
                                  #18

                                  @timconsidine Glad you figured it out ๐Ÿ™‚

                                  1 Reply Last reply
                                  1
                                  • KubernetesK Offline
                                    KubernetesK Offline
                                    Kubernetes
                                    App Dev
                                    wrote on last edited by
                                    #19

                                    Updated the App in my repo to Version 0.3.0

                                    1 Reply Last reply
                                    5
                                    • KubernetesK Offline
                                      KubernetesK Offline
                                      Kubernetes
                                      App Dev
                                      wrote on last edited by
                                      #20

                                      Updated the App in my repo to Version 0.3.1 (the new version contains the requirements fix that I did manually in 0.3.0)

                                      1 Reply Last reply
                                      1
                                      • marcusquinnM Offline
                                        marcusquinnM Offline
                                        marcusquinn
                                        wrote on last edited by
                                        #21

                                        On the subject of VPNs, yes for public VPNs, but you can setup your own on a small Hetzner VPS for a couple of ยฃ/$/โ‚ฌ a month, and I don't think those IP ranges would be blocked as much. Then there's Tor onion network. As long as we don't quit, all the blocks just inspire more innovations to work around.

                                        Web Design https://www.evergreen.je
                                        Development https://brandlight.org
                                        Life https://marcusquinn.com

                                        1 Reply Last reply
                                        3
                                        • L Offline
                                          L Offline
                                          LoudLemur
                                          wrote on last edited by
                                          #22

                                          Russia is trying to eliminate VPN usage:
                                          https://torrentfreak.com/putin-outlaws-anonymity-user-id-verification-for-online-services-vpn-bypass-advice-a-crime-230801/

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search