M
M
mashyker2017-10-29 00:46:16
Bots
mashyker, 2017-10-29 00:46:16

Is it possible to create a Telegram bot using Swift, and is it reasonable?

Started learning programming with Swift. I got interested in the question: is it possible to create a Telegram bot using this language, and is it reasonable?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
N
Nobby2519, 2017-10-29
@Nobby2519

It's possible, I'll allow it.
Some have already implemented:
https://github.com/zmeyc/telegram-bot-swift
https://github.com/FabrizioBrancati/SwiftyBot
https://www.fabriziobrancati.com/posts/swiftybot-2...

D
doublench21, 2017-10-29
@doublench21

Yes, of course you can! As for wisdom, let's think about it. Obviously, after development, this code will have to work on some Linux based server, and this is where problems may arise. The fact is that under Linix, the main Swift framework - Foundation, has not yet been fully ported. From here, some problems may arise, in particular, an incompletely implemented URLSession Class.
PS Swift is very cool, but it is very young and therefore it is too early to put it on the server, in view of the problems mentioned above.
PPS But for developing Swift skills on macOS - yes, of course, there will be no problems in writing such a bot. Welcome as they say...

A
Alexander Semchenko, 2017-10-29
@0xcffaedfe

It's smart to use Go.

R
riksport, 2018-04-24
@riksport

You can of course, here is a good Framework https://github.com/givip/Telegrammer

N
nerzh, 2021-08-08
@nerzh


github link
changed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question